OFFSET
1,1
COMMENTS
Although the sequences for the most significant digits of Mersenne numbers, A000225, are not cyclic (the most significant is not cyclic, the second most is not, etc.), the sequences for the least significant digits are. For example, if p == 3 (mod 4), then A000225(p) == 7 (mod 10). Since A007013(n + 1) = A000225(A007013(n)) and A007013(1) == 3 (mod 4), all subsequent values will be congruent to 7 (mod 10). Similarly, if p == 7 (mod 20), A000225(p) == 27 (mod 100). In general, if p == x (mod A005054(n)), then A000225(p) == A000225(x) (mod 10^n).
There are many primes of the form Sum_{i=1..n} a(i)*10^(i - 1). The largest known is for n = 7032 (it is 7032 digits long).
LINKS
Davis Smith, Table of n, a(n) for n = 1..7032
FORMULA
PROG
(PARI) A352301_vec(n)=my(N=7, m=0); while(m<n, m++; N=lift(Mod(2, 10^m)^N)-1); Vecrev(digits(N))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Davis Smith, Mar 11 2022
STATUS
approved