OFFSET
1,5
COMMENTS
Conjecture: For primes p == 1, 9, 17, 25, 49, 81 (mod 104), the probability of a(p^e) taking on the value 1, 2, 4 is 1/6, 2/3, 1/6, respectively; for primes p == 29, 53, 61, 69, 77, 101 (mod 104), the probability of a(p^e) taking on the value 1, 4 is 1/2, 1/2, respectively.
LINKS
Jianing Song, Table of n, a(n) for n = 1..1000
FORMULA
For n > 2, T(n,k) = 4 iff A322907(n) is odd; 1 iff A322907(n) is even but not divisible by 4; 2 iff A322907(n) is divisible by 4.
For primes p == 3, 23, 27, 35, 43, 51 (mod 52), a(p^e) = 1.
For primes p == 5, 21, 33, 37, 41, 45 (mod 52), a(p^e) = 4.
For primes p == 7, 11, 15, 19, 31, 47 (mod 52), a(p^e) = 2.
a(13^e) = 4. a(2^e) = 1 if e = 1, 2 and 2 if e >= 3.
PROG
CROSSREFS
Let {x(n)} be a sequence defined by x(0) = 0, x(1) = 1, x(n+2) = k*x(n+1) + x(n). Then the periods, ranks and the ratios of the periods to the ranks modulo a given integer n are given by:
KEYWORD
nonn
AUTHOR
Jianing Song, Jan 05 2019
STATUS
approved