The strategy "choose the most illogical strategy", or how we took second place in the Tinkoff Mathematical Regatta

Hello! We are fourth-year students in Applied Mathematics and Informatics at the St. Petersburg HSE. In July, we took part in the Tinkoff Mathematical Regatta , and in this post we will tell you what kind of competition it is, what our strategy was, and show examples of problems.



image

Picture from the official website of the Mathematical Regatta



Our educational program teaches not only programming, but also mathematics (do it!). , , . . , -, , , .



, 18 -, Just4Fun, . 391 , 3–5 . 1628 131 .





. 25 , 5 5 : , , , , .



β€” 1000 . «» 100 500 : , . «» , ( ). 2x , β€” 1.5x, β€” 1x.



, . .



, .



image



. , , , , . , . 



β€” .





-, , , . . 



, , . , 300 - ( !) , .



, , 400 . , : , ( 1000) . 



! , , , . .



image



. - , , ( ). Wolfram, Python , , C++ ( ). , , β€” . 





.



image



(0:1, 0:2, ..., 6:6 β€” 27 ).  2,5 «» .



. , 7 β€” β€” , , . , . , , . , .



, [2:5] N , 5 , 2 β€” . N 3 4. , 2 (4βˆ’2=2), N β€” (5βˆ’3=2). , , . .





, , , , . , , ; , , , . 



15 ( 21 ). , , - . , 21- - . 



, . 25 , 55 14.





, . , - . , . β€” , .







: . 

: 500.

. . , 2 ; , . , , . .



:

n , , .



n h(n), β€” F(n).

h(n)=F(nβ€”1) (, ). 

F(n)=F(nβ€”1)+h(nβˆ’1)=F(nβˆ’1)+F(nβˆ’2) ( )



c F(0)=F(1)=1.



, n . ( ) , ( ), f(n) ( ) g(n) ( ).



f g



g. , , (. . ), , g(n)=f(nβ€”1)2, .



f. , . , 2 , . . f(n)=f(nβ€”1)+g(nβˆ’1)+2F(n) ( F ).



, .



, . , n>1 ( ) 12n ( ). βˆ‘i=2+∞g(iβ€”1)2i=f(iβˆ’2)2i+1.



, . .



:



S1=βˆ‘n=1∞F(n)2n=F(1)+βˆ‘n=2∞F(nβ€”1)+F(nβˆ’2)2n==F(1)+34βˆ‘n=1∞F(n)2n=F(1)+34S1⟹S1=4



:



S2=βˆ‘f(n)2n+3=βˆ‘F(n)2n+2+βˆ‘f(nβ€”1)+f(nβˆ’2)/22n+3==S1/4+58S2⟹S2=83



: 83





[2:3].



. , DF , ( DF: , ).



:

, S_48



F, D. F, D. , x, DFx. , , . . . DF. D, F . p. , .



, 105 . , , , - .



: 105.




All Articles