A214300 Sum of the terms of the Pisano period mod n.
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
Offset: 1
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Programs
-
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
Formula
a(n) = n * A088551(n).
Comments