Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A109718
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A109718 Periodic sequence with period {0,1,0,3}, or n^3 mod 4. +0
1
0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0 (list; graph; listen)
OFFSET

0,4

COMMENT

Since n^(2k+1) mod 4 = n^3 mod 4 for k>1 this sequence also represents n^5 mod 4; and n^7 mod 4; etc

FORMULA

a(n) = n^3 mod 4. G.f. = (x+3x^3)/(1-x^4)

a(n) = (1/12)*{11*(n mod 4)-7*[(n+1) mod 4]+5*[(n+2) mod 4]-[(n+3) mod 4]} - Paolo P. Lava (ppl(AT)spl.at), Nov 21 2006

PROGRAM

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

CROSSREFS

n mod 4 = A010873; n^2 mod 4 = A000035.

Sequence in context: A101270 A155522 A007524 this_sequence A053385 A035640 A079327

Adjacent sequences: A109715 A109716 A109717 this_sequence A109719 A109720 A109721

KEYWORD

easy,nonn

AUTHOR

Bruce Corrigan (scentman(AT)myfamily.com), Aug 09 2005

page 1

Search completed in 0.006 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research