Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A000689
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A000689 Final decimal digit of 2^n. +0
3
1, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6, 2, 4, 8, 6 (list; graph; listen)
OFFSET

0,2

LINKS

Index entries for sequences related to final digits of numbers

FORMULA

Periodic with period 4.

a(n)=(1/6)*{8*(i mod 4)-[(i+1) mod 4]+2*[(i+2) mod 4]+11*[(i+3) mod 4]}-5*{1-[((i+1)!+1) mod (i+1)]}, with n>=0. - Paolo P. Lava (ppl(AT)spl.at), Jun 25 2007

MAPLE

P:=proc(n) local a, i; for i from 0 by 1 to n do a:=1/6*(8*(i mod 4)-((i+1) mod 4)+2*((i+2) mod 4)+11*((i+3) mod 4))-5*(1-(((i+1)!+1) mod (i+1))); print(a); od; end: P(100); - Paolo P. Lava (ppl(AT)spl.at), Jun 25 2007

CROSSREFS

Adjacent sequences: A000686 A000687 A000688 this_sequence A000690 A000691 A000692

Sequence in context: A036117 A116624 A125733 this_sequence A132137 A011180 A103546

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

page 1

Search completed in 0.004 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 November 8 07:45 EST 2009. Contains 166143 sequences.


AT&T Labs Research