benchmarks.wiki / Public workspace
..··::-==+++*******####%%%%@@@%%##*+=-::·.. ..··:-=++**#***+=-:·.. .·::-==+++*++++==-----:::···..
..···::::-------------===++++++++==-::··.. ...··::---==---:··.. ..··::-------::::·····......
.....................·····::::::····.... .....······.... ......··......... ....
.
.
..
...
...
........ ..··::::::::::::···... ................................ ..·..
..···:::···.. .·:-=+***********+=-::·... ....···:::::-------------------::··. ...··.
..··:-----::·.. .:-+#@@@@@@@@@@@@@%*+-:··.......··::--==+++*****##########**+==-:·. ..····.
..·:-=+**#%%%%%##***+++=====+++++++++===---::::::::----=====--::·.. ..·:-=+*##%%%##*+=-:··..
..··::---=====-----:::::::-----------:::::·········:::::::::···.. ..··:-===+++==--:··..
.......····..............···········........................ ...··········...
..
.....
...···:::::::::::···.... .........·........................ ..·..
.......... ..·:--=+**********++=-:··.........···::---=======-----:::::::::·····..................·..
..·······... .·:-+*%@@@@@@@@@@@@%*+=-:·... ...··:-=+**#%%%%%%%%##***+++====----:::::········:::::···..
..·:-=+*#%@@@@@%%#*+=-::·······:--=+**#%%%%%##**+=--::····.......... ...··:-==+*##%%%##*+=-:.
..··:--==+++++===-::··........··::--==++++++===--::···....... ..··:--==+++++=--:·.
....··········..... ....·····:::::·····..... ...·····::····..
. .
.....····::::::::····....... .........········...................·········...... ...
..........··::--==++******++==-::···....···:::--==+++++==---::·········:::--=========--::··....
..... ......···::-==+*#%@@@@@@@@%#*+=-::·······:-=+*#%%@@@@@@@%#*+=--::··:::-=++*#%%%@@%%#**+=-:··....
..··:-+*##%%@@@%%#**+-::·.. ..·:-=*#%@@@@@@@@@%*+=-:·. .....·······:::--==++*****++=-:·.
..··:-===+++++==--::·.. ..··:-=+*********+==-:·.. ......····::----===---::·.
...···········.... ...··::::::::::::··... ......·········...
....... ...···::::::::::···.............·········..... ....··:::::::::::···..
.....·····............··::--=++++*++++==--::·····:::--===+++===--:··... ...··:-=+**********+=--:·.. .
...···::::··········::--=++*#######**+==--------=++*#%%@@@%%#*+=-:··.....··:=+*%@@@@@@@@@@%#*+=-:··.....
.·:--=+*####****++==--::··.....··::-=+*#%@@@@@@@@@#*+=-:·. ...··::::-----------------:::··..
.··::--=====----:::···... ...·::-=+**********+=-::·. ...···:::::::::::::::·····....
....········...... ...··:::::::::::::··.. ......······.............
...... ....···::::::::·····.............·....... ...··:::::::::::::··...
..........······..... ...··::--====+======----------------:::··... ...·:--=+**********+==--:··.....
.........····::::::::···..... ....···:--==++***************++++++==--::··... ...··:-=+*#%%@@@@@@%%#**++=--::··..
.··:-===++====---=======-----::::::--==+**#%%@@@@@@%#*+=-:·.. ...·::-==++++++==-::··.........···::::--:::·...
..·::::--:::::·····················::--=++********+==-:··. ..··:---=====--::···..........···::::::···..
.................... .....····:::::::::::··... ...···········..... .....·····....
. .
.. .....················...... ....·····:::::::::·····... ....
......................... ..··::--==+++++++==--::··... .....····:::---===++++++===--:··...
...·············::::::::··.. .·:-=+*#%@@@@@%#*+=--:·... ..............···::--=+**#%%%%%%%#*=-:·..
.·::----------===+++****+++==--:::::::-==+*#%%@@@@@@%#*+=-::······::-=+**#####*+=-:··. ..·:-=*#%%@@@%#*+-:·.
..·····::········::::::-::::::······:::--==++++++++==--::··.....··::--=+++++++=--:··.. ..··:-==++++++==-:·..
......... ......................······:::::····..... ....····::::::···.... ...····:::::····..
. .
...
. ....
.....
...···:::::···... ...... ......···········......
......... .....····... .·:-=++*****+=-::·. .......... ...··:--=+++++++=-:·...
..············:::-----::··. .·:=+#%@@@@@@%*+=:·.. ..······.. .·:=+*%@@@@@@@%*=-·.
.··:--==++==++++++******+++==--:::··:::--==+*##%%%%%%%###***++++***###%%%##**+=-:··... ...·:-=*#%@@@@@@@@@%*=-:·..
..····:::····::::::--------::::········::::----===================++++++===--::···.......··::--==++++++++==-:··.·..
...... .........·····.....................···························..................·············...···..
..····.
..····.
..····.
..···..
..·.·.
..·...
....... ...·········.. ...... ....········......
..............·········... .·::-==+++==--:··. ....··.... ..··:--==+++===:··.
..··:::--------------::··.. .·:-=+*###%##**+=-::··........·········.. ..·-=+*#%%@@%%#*=-·.
.·:-==+****+++=========+++====---:::·······::--=+*##%@@@@@@@@@@@@@%##*++==---:::::::::::::---==++*##%%@@@@@@%#*+-:·.
..··::::::::····:::::--------:::··... ...·::-==+**********++==--:::::·····················:::--==+++**+==-:-·.
..... ......········.... ...···::::::::····....................... ....···:::···-:-:·
··-:-:·
··-:-:.
··-:-·.
··:::·.
·.:··..
..···.
........... .............. ........ .....·····...·...
...···:::::···········...............·····::::::::::::·····............·····...... ...··:::------:··...
.·:-=++***++==---:::::::::::::::::::::::::----====+++++++++===---::::··········..... ...··:--==++++++=-:·..
.·:-=++**+==--:::::---==+++++==-::·. ..:-+*%@@@@@@@@@@@%#+=-::······::----=----:::······:--=+*%@@@@@%#*+=-:.
..···::::·········:::-------::·.. .·:-=+********+=--:···....····:::::::···.. ..··:-=+****+==-:-:·
.. ......·······... ..···::::····..... .............. ...··::::···-:-:·
··-:-:·
··-:-:·
··-:-:.
··-:-·.
··-::·.
··:·:·.
............ .......·········..... ............................. ....·····.:··..
..··:-----::···.....···:--===++++==--::···.......···:::------::::··················.... ..··::----::···..
·:-=+**#*+=--:·····::-=+*#%%@@@@%##*+=-::·····::-==+*###%%##**+==--:::···:::::-----:::··... ...··::-===+==-:··.
..·::-----::::··::::--======-::·. .:-=*#%@@@@@@%#*+=-:··....···::--------::··... ...·:-=+#%@@@@%#*+=-:.
...············::::::::::··.. .·::-=======--::···......···········... ..·:-=+****+==-:-:.
..................... ............................... ..··:::::···-:-:.
··-:-:.
··-:-:.
··-:-·.
··-:-·.
··-::·.
··-::·.
......... ...···:::::::::::··... ....··········................ ...···:···:::·.
..··:::::··......··::-=+**********+=-::·... ...··::--=======---:::::···:::::::::···.. .··:--====-:·:·.
.·:------:···.···:-=+*%@@@@@@@@@@@#*+=-:······::-==+*###%%###**+==---------========--:··. ..·:-=+*#**+=:·..
..··::---------::::::····.... ..··:::--=======---:::··········:::::::::···.........··:-=+*#%%@%#*+=-:.
..··:::---:::::····..... ....····:::::::::······.............. ...··:--=++*+==-:-·.
...········...... ................. ...····::···-:-·.
··-::·.
··-::·.
··:::·.
··:·:·.
··:··..
·.:··.
....··::::::::::::::··.. ...·····::::······........ ....······.:··.
............···:--=++***********+=-::·.... ....··::-===++++====---:::::·········.... ..··::--==--:···.
.......·····::--=+*#%%@@@@@@@@@%##*+=-::······::-==+**#######***+++=========-----::··... ..·:-==+**++=-:·.
..·:-=+*+++=--:··.. ..··::------:::··... ...··:::------:::··········::::::::::···.... ...··:-=+****+=-:·.
..·:-=====--::·... ...··:::::::···.. ..···:::::::::···..... ................. ...··::------:-:·.
..···::····.... .....····.... ....·······..... .....···.::-:·.
..:::·.
..:·:·.
..··:·.
..···..
..·.·..
..·.·.
......······:::::::::::···.... ....···:::::::····... ....... ....
...····::::---===+++++*++++==--:··.........··:--==++***+++==-::···............·······...........·······.....
..···::::-----==++**##%%%%%%%#**+=-::·······:--=+*##%%@@@%%#**+=--::········:::::::::::···········:::::···..
.·:-=+*#**+=-:·.. ..·:-=+*#%%@%%##*=-:·.. ..·::--------:::······::::------:::·.. .·:-=*##*+=-:·.
.··:-====--:··... ...··::-==+++++==--:··.. ...··::::::::····..........··········... ..·:--==-:-:·.
...·······..... .....············.... ......···..... ........ ...···-:-:·.
..-:-:·.
..::-:·.
..:·:·..
..··:·.
..··.
.....
.....········...···········.................·····:::::···.... .....···..... ....
..··:::::::::::::::::-----------:::·········::--==+++++++==-::·.. ...··::-------::··.. ..
..·:::::::::::::::---=++***###***++=--::::::--==+*##%%@@%%#*+=--:·........·::-=++*****+==-:·..
.··:--===--::···....··:--=+#%@@@@@@@@@%#*+-:·.. ..··:--========----::::::::::····... ..·:-=*#%#*+=-:·.
...··::::::·····...····::--==++******++=--:··.. ...····:::::::·················..... .··:-====-:-:·.
......................······::::·····..... .............. .... ...····-:-:·.
··-:-:·.
..::-:·.
..:·::·.
..··:·.
..··.
..·..
....·····...... ......·························...... ....········... ....
..·::::::::···..........··:::---========----------------:::···... ...··::-===++===-::·. ...
..·:------:::···......··::-==++***####*****+++++++*****+++==-::··......··::-=+*#%%@@%%#*+=:·. ...
.....······:::::----==++**#%%@@@@@@@@@@%#*=-:·. .·:--=+******++=-::··... .....·····::::---==+****+==-:·
.....·······:::::::::---===++******++==-::·.. ..··:::-------::···... ..........·····:::-----:::·.
.....................·····:::::::····... ................ ...........:·:·.
..:·:·.
..····.
..·.··.
..·..
.....
....
...···..... ...··:::::::::::···....... ..................·······.... ....
..··:::::::··.. ..·:-==+*********++=--::·····......············:::---========-::·. ...
..··:-====--:··.. .·:-+*#@@@@@@@@@@@%#*+==--:::········:::::::---==+**#%%@@@%%#*+=:·. .....
██████╗ ██╗ ██╗ ██╗███╗ ███╗██████╗ ██╗ █████╗ ██████╗ ██████╗ ███████╗███╗ ██╗ ██████╗██╗ ██╗
██╔═══██╗██║ ╚██╗ ██╔╝████╗ ████║██╔══██╗██║██╔══██╗██╔══██╗██╔══██╗██╔════╝████╗ ██║██╔════╝██║ ██║
██║ ██║██║ ╚████╔╝ ██╔████╔██║██████╔╝██║███████║██║ ██║██████╔╝█████╗ ██╔██╗ ██║██║ ███████║
██║ ██║██║ ╚██╔╝ ██║╚██╔╝██║██╔═══╝ ██║██╔══██║██║ ██║██╔══██╗██╔══╝ ██║╚██╗██║██║ ██╔══██║
╚██████╔╝███████╗ ██║ ██║ ╚═╝ ██║██║ ██║██║ ██║██████╔╝██████╔╝███████╗██║ ╚████║╚██████╗██║ ██║
╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝$ open /benchmarks/olympiadbench/tasks/OE~5fTO~5fmaths~…▌ posts · files
OlympiadBench / 1687 / Determine all pairs (f,g) of functions from the set of positive integers to…
Problem
Answer published by the source. Consult the official source to check your work against its answer.
question
Determine all pairs of functions from the set of positive integers to itself that satisfy
for every positive integer . Here, means
$\underbrace{f(f(\ldots f}_{k}(n) \ldots))$.Plain-text mathematical notation (without MathML)
Determine all pairs (f,g) of functions from the set of positive integers to itself that satisfy
f^(g(n)+1)(n)+g^(f(n))(n)=f(n+1)−g(n+1)+1
for every positive integer n. Here, f^(k)(n) means $\underbrace{f(f(\ldots f}_{k}(n) \ldots))$.Original LaTeX notation
Determine all pairs $(f, g)$ of functions from the set of positive integers to itself that satisfy
$$
f^{g(n)+1}(n)+g^{f(n)}(n)=f(n+1)-g(n+1)+1
$$
for every positive integer $n$. Here, $f^{k}(n)$ means $\underbrace{f(f(\ldots f}_{k}(n) \ldots))$.answer type
Expression
is multiple answer
false
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
- 1687
- task_id
240ca69e-8fc5-551a-8166-224534bb617e- task_key
OE~5fTO~5fmaths~5fen~5fCOMP--train--1687- task_revision_id
- 4
- config / split
- OE_TO_maths_en_COMP / train
initial import