|
|
A214300
|
|
Sum of the terms of the Pisano period mod n.
|
|
3
|
|
|
0, 2, 9, 8, 40, 66, 49, 32, 99, 280, 33, 108, 156, 322, 285, 144, 272, 198, 133, 560, 105, 264, 529, 216, 1200, 1040, 945, 532, 116, 1770, 372, 608, 495, 544, 1365, 324, 1332, 228, 1053, 1120, 779, 798, 1849, 484, 2655, 1058, 705, 432, 2695, 7400, 1785, 1976, 2756
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(PARI) a(n)=if(n==1, return(0)); my(a=0, b=1, s=1, t); while(b||a!=1, s+=a; t=a; a=b; b+=t; if(b>=n, b-=n)); s
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|