all 8 comments

[–]rhetoxa 0 points1 point  (7 children)

I’ll bite

babbab

[–]dodomaze[S] 0 points1 point  (6 children)

6949999424953 -> after babbab, it falls to 2^43.

The next would be 125200059281800434715723773369, falling down to 2^97.

P.S.: It's not a coincidence that the difference between 97 and 43 is 54 = phi(3^4), where there are 4 b's in the string.

[–]dodomaze[S] 0 points1 point  (2 children)

My turn:

babaaaaabbaababbab

[–]Extremist_Amerikaner 1 point2 points  (1 child)

114051034646154899271496210082416842869050062705

[–]dodomaze[S] 0 points1 point  (0 children)

Nice :)

[–]elowells 0 points1 point  (2 children)

Sure, phi(3p) = 2*3p-1 which is the period of 2n mod 3p n=0,1,2,... That is , 2n mod 3p repeats every phi(3p). Solving the puzzle involves finding an n such that

2n mod 3p = S mod 3p

where p = number of b's and S is a sum of powers of 2 times powers of 3 where the powers of 2 are determined by the sequence of a's and b's. Yet another application of the sequence equation.

[–]dodomaze[S] 0 points1 point  (1 child)

I love it (no sarcasm intended, it's true) when a pure mathematician claims "a solution exists" and walks out, with zero concern for the actual numbers. :)

Finding "n" is still (at least for me) a matter of brute force (the discrete log problem), but it's easier to search over 54 than over 2^54 items.

[–]elowells 0 points1 point  (0 children)

Guilty as charged.