login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070472 n^3 mod 7. 2
0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1, 6, 1, 6, 6, 0, 1, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

FORMULA

Periodic with period 7.

a(n)=1/7*{7*(n mod 7)+[(n+1) mod 7]-4*[(n+2) mod 7]+6*[(n+3) mod 7]-4*[(n+4) mod 7]+[(n+5) mod 7]} with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Nov 27 2006

PROG

(Other) sage: [power_mod(n, 3, 7 )for n in xrange(0, 101)] # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Oct 29 2009]

CROSSREFS

Sequence in context: A144544 A070514 A169886 * A151784 A093563 A081775

Adjacent sequences:  A070469 A070470 A070471 * A070473 A070474 A070475

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), May 12 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 06:53 EST 2012. Contains 205577 sequences.