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

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

0,3

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,0,0,0,1).

FORMULA

Periodic with period 7.

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

G.f. -x*(1+x)*(x^4+3*x^3-x^2+3*x+1) / ( (x-1)*(1+x+x^2+x^3+x^4+x^5+x^6) ). - R. J. Mathar, Feb 24 2011

MATHEMATICA

Table[Mod[n^2, 7], {n, 0, 200}] (* From Vladimir Joseph Stephan Orlovsky, Apr 21 2011 *)

CROSSREFS

Cf. A070430, A070431.

Sequence in context: A140395 A061505 A197154 * A170988 A141035 A100854

Adjacent sequences:  A053876 A053877 A053878 * A053880 A053881 A053882

KEYWORD

nonn

AUTHOR

Stuart M. Ellerstein (ellerstein(AT)aol.com), Apr 01 2000

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Apr 08 2000

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 16 04:47 EST 2012. Contains 205860 sequences.