A070510 a(n) = n^3 mod 48.
0, 1, 8, 27, 16, 29, 24, 7, 32, 9, 40, 35, 0, 37, 8, 15, 16, 17, 24, 43, 32, 45, 40, 23, 0, 25, 8, 3, 16, 5, 24, 31, 32, 33, 40, 11, 0, 13, 8, 39, 16, 41, 24, 19, 32, 21, 40, 47, 0, 1, 8, 27, 16, 29, 24, 7, 32, 9, 40, 35, 0, 37, 8, 15, 16, 17, 24, 43, 32, 45, 40, 23, 0, 25, 8, 3, 16, 5
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Programs
-
Magma
[Modexp(n, 3, 48): n in [0..80]]; // Bruno Berselli, Mar 31 2016
-
Mathematica
PowerMod[Range[0,80],3,48] (* Harvey P. Dale, Apr 03 2013 *)
-
PARI
a(n)=n^3%48 \\ Charles R Greathouse IV, Apr 06 2016
-
Sage
[power_mod(n,3,48) for n in range(0, 78)] # Zerinvary Lajos, Oct 30 2009