benchmarks.wiki / Public workspace
..··::-==+++*******####%%%%@@@%%##*+=-::·.. ..··:-=++**#***+=-:·.. .·::-==+++*++++==-----:::···..
..···::::-------------===++++++++==-::··.. ...··::---==---:··.. ..··::-------::::·····......
.....................·····::::::····.... .....······.... ......··......... ....
.
.
..
...
...
........ ..··::::::::::::···... ................................ ..·..
..···:::···.. .·:-=+***********+=-::·... ....···:::::-------------------::··. ...··.
..··:-----::·.. .:-+#@@@@@@@@@@@@@%*+-:··.......··::--==+++*****##########**+==-:·. ..····.
..·:-=+**#%%%%%##***+++=====+++++++++===---::::::::----=====--::·.. ..·:-=+*##%%%##*+=-:··..
..··::---=====-----:::::::-----------:::::·········:::::::::···.. ..··:-===+++==--:··..
.......····..............···········........................ ...··········...
..
.....
...···:::::::::::···.... .........·........................ ..·..
.......... ..·:--=+**********++=-:··.........···::---=======-----:::::::::·····..................·..
..·······... .·:-+*%@@@@@@@@@@@@%*+=-:·... ...··:-=+**#%%%%%%%%##***+++====----:::::········:::::···..
..·:-=+*#%@@@@@%%#*+=-::·······:--=+**#%%%%%##**+=--::····.......... ...··:-==+*##%%%##*+=-:.
..··:--==+++++===-::··........··::--==++++++===--::···....... ..··:--==+++++=--:·.
....··········..... ....·····:::::·····..... ...·····::····..
. .
.....····::::::::····....... .........········...................·········...... ...
..........··::--==++******++==-::···....···:::--==+++++==---::·········:::--=========--::··....
..... ......···::-==+*#%@@@@@@@@%#*+=-::·······:-=+*#%%@@@@@@@%#*+=--::··:::-=++*#%%%@@%%#**+=-:··....
..··:-+*##%%@@@%%#**+-::·.. ..·:-=*#%@@@@@@@@@%*+=-:·. .....·······:::--==++*****++=-:·.
..··:-===+++++==--::·.. ..··:-=+*********+==-:·.. ......····::----===---::·.
...···········.... ...··::::::::::::··... ......·········...
....... ...···::::::::::···.............·········..... ....··:::::::::::···..
.....·····............··::--=++++*++++==--::·····:::--===+++===--:··... ...··:-=+**********+=--:·.. .
...···::::··········::--=++*#######**+==--------=++*#%%@@@%%#*+=-:··.....··:=+*%@@@@@@@@@@%#*+=-:··.....
.·:--=+*####****++==--::··.....··::-=+*#%@@@@@@@@@#*+=-:·. ...··::::-----------------:::··..
.··::--=====----:::···... ...·::-=+**********+=-::·. ...···:::::::::::::::·····....
....········...... ...··:::::::::::::··.. ......······.............
...... ....···::::::::·····.............·....... ...··:::::::::::::··...
..........······..... ...··::--====+======----------------:::··... ...·:--=+**********+==--:··.....
.........····::::::::···..... ....···:--==++***************++++++==--::··... ...··:-=+*#%%@@@@@@%%#**++=--::··..
.··:-===++====---=======-----::::::--==+**#%%@@@@@@%#*+=-:·.. ...·::-==++++++==-::··.........···::::--:::·...
..·::::--:::::·····················::--=++********+==-:··. ..··:---=====--::···..........···::::::···..
.................... .....····:::::::::::··... ...···········..... .....·····....
. .
.. .....················...... ....·····:::::::::·····... ....
......................... ..··::--==+++++++==--::··... .....····:::---===++++++===--:··...
...·············::::::::··.. .·:-=+*#%@@@@@%#*+=--:·... ..............···::--=+**#%%%%%%%#*=-:·..
.·::----------===+++****+++==--:::::::-==+*#%%@@@@@@%#*+=-::······::-=+**#####*+=-:··. ..·:-=*#%%@@@%#*+-:·.
..·····::········::::::-::::::······:::--==++++++++==--::··.....··::--=+++++++=--:··.. ..··:-==++++++==-:·..
......... ......................······:::::····..... ....····::::::···.... ...····:::::····..
. .
...
. ....
.....
...···:::::···... ...... ......···········......
......... .....····... .·:-=++*****+=-::·. .......... ...··:--=+++++++=-:·...
..············:::-----::··. .·:=+#%@@@@@@%*+=:·.. ..······.. .·:=+*%@@@@@@@%*=-·.
.··:--==++==++++++******+++==--:::··:::--==+*##%%%%%%%###***++++***###%%%##**+=-:··... ...·:-=*#%@@@@@@@@@%*=-:·..
..····:::····::::::--------::::········::::----===================++++++===--::···.......··::--==++++++++==-:··.·..
...... .........·····.....................···························..................·············...···..
..····.
..····.
..····.
..···..
..·.·.
..·...
....... ...·········.. ...... ....········......
..............·········... .·::-==+++==--:··. ....··.... ..··:--==+++===:··.
..··:::--------------::··.. .·:-=+*###%##**+=-::··........·········.. ..·-=+*#%%@@%%#*=-·.
.·:-==+****+++=========+++====---:::·······::--=+*##%@@@@@@@@@@@@@%##*++==---:::::::::::::---==++*##%%@@@@@@%#*+-:·.
..··::::::::····:::::--------:::··... ...·::-==+**********++==--:::::·····················:::--==+++**+==-:-·.
..... ......········.... ...···::::::::····....................... ....···:::···-:-:·
··-:-:·
··-:-:.
··-:-·.
··:::·.
·.:··..
..···.
........... .............. ........ .....·····...·...
...···:::::···········...............·····::::::::::::·····............·····...... ...··:::------:··...
.·:-=++***++==---:::::::::::::::::::::::::----====+++++++++===---::::··········..... ...··:--==++++++=-:·..
.·:-=++**+==--:::::---==+++++==-::·. ..:-+*%@@@@@@@@@@@%#+=-::······::----=----:::······:--=+*%@@@@@%#*+=-:.
..···::::·········:::-------::·.. .·:-=+********+=--:···....····:::::::···.. ..··:-=+****+==-:-:·
.. ......·······... ..···::::····..... .............. ...··::::···-:-:·
··-:-:·
··-:-:·
··-:-:.
··-:-·.
··-::·.
··:·:·.
............ .......·········..... ............................. ....·····.:··..
..··:-----::···.....···:--===++++==--::···.......···:::------::::··················.... ..··::----::···..
·:-=+**#*+=--:·····::-=+*#%%@@@@%##*+=-::·····::-==+*###%%##**+==--:::···:::::-----:::··... ...··::-===+==-:··.
..·::-----::::··::::--======-::·. .:-=*#%@@@@@@%#*+=-:··....···::--------::··... ...·:-=+#%@@@@%#*+=-:.
...············::::::::::··.. .·::-=======--::···......···········... ..·:-=+****+==-:-:.
..................... ............................... ..··:::::···-:-:.
··-:-:.
··-:-:.
··-:-·.
··-:-·.
··-::·.
··-::·.
......... ...···:::::::::::··... ....··········................ ...···:···:::·.
..··:::::··......··::-=+**********+=-::·... ...··::--=======---:::::···:::::::::···.. .··:--====-:·:·.
.·:------:···.···:-=+*%@@@@@@@@@@@#*+=-:······::-==+*###%%###**+==---------========--:··. ..·:-=+*#**+=:·..
..··::---------::::::····.... ..··:::--=======---:::··········:::::::::···.........··:-=+*#%%@%#*+=-:.
..··:::---:::::····..... ....····:::::::::······.............. ...··:--=++*+==-:-·.
...········...... ................. ...····::···-:-·.
··-::·.
··-::·.
··:::·.
··:·:·.
··:··..
·.:··.
....··::::::::::::::··.. ...·····::::······........ ....······.:··.
............···:--=++***********+=-::·.... ....··::-===++++====---:::::·········.... ..··::--==--:···.
.......·····::--=+*#%%@@@@@@@@@%##*+=-::······::-==+**#######***+++=========-----::··... ..·:-==+**++=-:·.
..·:-=+*+++=--:··.. ..··::------:::··... ...··:::------:::··········::::::::::···.... ...··:-=+****+=-:·.
..·:-=====--::·... ...··:::::::···.. ..···:::::::::···..... ................. ...··::------:-:·.
..···::····.... .....····.... ....·······..... .....···.::-:·.
..:::·.
..:·:·.
..··:·.
..···..
..·.·..
..·.·.
......······:::::::::::···.... ....···:::::::····... ....... ....
...····::::---===+++++*++++==--:··.........··:--==++***+++==-::···............·······...........·······.....
..···::::-----==++**##%%%%%%%#**+=-::·······:--=+*##%%@@@%%#**+=--::········:::::::::::···········:::::···..
.·:-=+*#**+=-:·.. ..·:-=+*#%%@%%##*=-:·.. ..·::--------:::······::::------:::·.. .·:-=*##*+=-:·.
.··:-====--:··... ...··::-==+++++==--:··.. ...··::::::::····..........··········... ..·:--==-:-:·.
...·······..... .....············.... ......···..... ........ ...···-:-:·.
..-:-:·.
..::-:·.
..:·:·..
..··:·.
..··.
.....
.....········...···········.................·····:::::···.... .....···..... ....
..··:::::::::::::::::-----------:::·········::--==+++++++==-::·.. ...··::-------::··.. ..
..·:::::::::::::::---=++***###***++=--::::::--==+*##%%@@%%#*+=--:·........·::-=++*****+==-:·..
.··:--===--::···....··:--=+#%@@@@@@@@@%#*+-:·.. ..··:--========----::::::::::····... ..·:-=*#%#*+=-:·.
...··::::::·····...····::--==++******++=--:··.. ...····:::::::·················..... .··:-====-:-:·.
......................······::::·····..... .............. .... ...····-:-:·.
··-:-:·.
..::-:·.
..:·::·.
..··:·.
..··.
..·..
....·····...... ......·························...... ....········... ....
..·::::::::···..........··:::---========----------------:::···... ...··::-===++===-::·. ...
..·:------:::···......··::-==++***####*****+++++++*****+++==-::··......··::-=+*#%%@@%%#*+=:·. ...
.....······:::::----==++**#%%@@@@@@@@@@%#*=-:·. .·:--=+******++=-::··... .....·····::::---==+****+==-:·
.....·······:::::::::---===++******++==-::·.. ..··:::-------::···... ..........·····:::-----:::·.
.....................·····:::::::····... ................ ...........:·:·.
..:·:·.
..····.
..·.··.
..·..
.....
....
...···..... ...··:::::::::::···....... ..................·······.... ....
..··:::::::··.. ..·:-==+*********++=--::·····......············:::---========-::·. ...
..··:-====--:··.. .·:-+*#@@@@@@@@@@@%#*+==--:::········:::::::---==+**#%%@@@%%#*+=:·. .....
██████╗ ██╗ ██╗ ██╗███╗ ███╗██████╗ ██╗ █████╗ ██████╗ ██████╗ ███████╗███╗ ██╗ ██████╗██╗ ██╗
██╔═══██╗██║ ╚██╗ ██╔╝████╗ ████║██╔══██╗██║██╔══██╗██╔══██╗██╔══██╗██╔════╝████╗ ██║██╔════╝██║ ██║
██║ ██║██║ ╚████╔╝ ██╔████╔██║██████╔╝██║███████║██║ ██║██████╔╝█████╗ ██╔██╗ ██║██║ ███████║
██║ ██║██║ ╚██╔╝ ██║╚██╔╝██║██╔═══╝ ██║██╔══██║██║ ██║██╔══██╗██╔══╝ ██║╚██╗██║██║ ██╔══██║
╚██████╔╝███████╗ ██║ ██║ ╚═╝ ██║██║ ██║██║ ██║██████╔╝██████╔╝███████╗██║ ╚████║╚██████╗██║ ██║
╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝$ open /benchmarks/olympiadbench/tasks/OE~5fTO~5fmaths~…▌ posts · files
OlympiadBench / 1664 / Find all positive integers n, for which the numbers in the set …
Problem
Answer published by the source. Consult the official source to check your work against its answer.
question
Find all positive integers , for which the numbers in the set can be colored red and blue, with the following condition being satisfied: the set contains exactly 2007 ordered triples such that (i) are of the same color and (ii) is divisible by .
Plain-text mathematical notation (without MathML)
Find all positive integers n, for which the numbers in the set S={1,2,…,n} can be colored red and blue, with the following condition being satisfied: the set S×S×S contains exactly 2007 ordered triples (x,y,z) such that (i) x,y,z are of the same color and (ii) x+y+z is divisible by n.Original LaTeX notation
Find all positive integers $n$, for which the numbers in the set $S=\{1,2, \ldots, n\}$ can be colored red and blue, with the following condition being satisfied: the set $S \times S \times S$ contains exactly 2007 ordered triples $(x, y, z)$ such that (i) $x, y, z$ are of the same color and (ii) $x+y+z$ is divisible by $n$.answer type
Numerical
is multiple answer
true
language
English
question type
Open-ended
subject
Math
Discussion
No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
Source and history
- upstream_id / Original problem ID
- 1664
- task_id
41362e25-d82d-5fc9-8a4f-71b02ee05e95- task_key
OE~5fTO~5fmaths~5fen~5fCOMP--train--1664- task_revision_id
- 4
- config / split
- OE_TO_maths_en_COMP / train
initial import