The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070489 a(n) = n^3 mod 27. 2
0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10, 17, 0, 19, 26, 0, 1, 8, 0, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(3*k) = 0. - Altug Alkan, Oct 03 2015
a(n) = a(n+9). - Altug Alkan, Oct 03 2015
G.f.: (-x -8*x^2 -10*x^4 -17*x^5 -19*x^7 -26*x^8)/(-1 + x^9). - G. C. Greubel, Mar 30 2016
MATHEMATICA
Table[PowerMod[n, 3, 27], {n, 0, 100}] (* Vincenzo Librandi, Oct 03 2015 *)
PROG
(Sage) [power_mod(n, 3, 27 ) for n in range(0, 86)] # Zerinvary Lajos, Oct 30 2009
(PARI) vector(100, n, (n-1)^3 % 27); \\ Altug Alkan, Oct 03 2015
CROSSREFS
Sequence in context: A320378 A228412 A260947 * A112268 A077062 A189764
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 12 21:26 EDT 2024. Contains 373360 sequences. (Running on oeis4.)