← RoseCode

ROSECODE 469

Palindromic Infinite Sequence

Philippe_57721 · Programming ·

An infinite sequence {S1,S2,S3,S4,} is said palindromic if:
for every n0 there is nn0 such as {S1,S2,S3,S4,,Sn} is palindromic.

It can be proved that for any irrational α, the sequence (α×n)(α×(n1)) for n1 is palindromic.
(x) is the integer part of x.

For the irrational e=2.71828, this sequence is palindromic for following indexes:
  • 1 - 1
  • 2 - 4
  • 3 - 11
  • 4 - 18
  • 5 - 25
  • 6 - 32
  • 7 - 71
Find the 109th index. Give your answer modulo 1010

You are given 3352820698 the 102th index

[My timing : 15 sec]