Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A061006
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A061006 (n-1)! mod n. +0
5
0, 1, 2, 2, 4, 0, 6, 0, 0, 0, 10, 0, 12, 0, 0, 0, 16, 0, 18, 0, 0, 0, 22, 0, 0, 0, 0, 0, 28, 0, 30, 0, 0, 0, 0, 0, 36, 0, 0, 0, 40, 0, 42, 0, 0, 0, 46, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 58, 0, 60, 0, 0, 0, 0, 0, 66, 0, 0, 0, 70, 0, 72, 0, 0, 0, 0, 0, 78, 0, 0, 0, 82, 0, 0, 0, 0, 0, 88, 0, 0, 0, 0, 0 (list; graph; listen)
OFFSET

1,3

FORMULA

a(4)=2, a(p)=p-1 for p prime, a(n)=0 otherwise. Apart from n=4, a(n)=(n-1)*A061007(n)=(n-1)*A010051(n).

EXAMPLE

a(4)=2 since (4-1)!=6=2 mod 4. a(5)=4 since (5-1)!=24 =4 mod 5. a(6)=0 since (6-1)!=120=0 mod 4.

MAPLE

P:=proc(n) local a, i, k, w; for i from 1 by 1 to n do w:=((i-1)! mod i); print(w); od; end: P(1000); - Paolo P. Lava (ppl(AT)spl.at), Apr 23 2007

CROSSREFS

Positive for all but the first term of A046022. Cf. A000040, A000142, A061007, A061008, A061009.

Sequence in context: A129240 A127786 A030207 this_sequence A080736 A113750 A004565

Adjacent sequences: A061003 A061004 A061005 this_sequence A061007 A061008 A061009

KEYWORD

nonn

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Apr 12 2001

page 1

Search completed in 0.002 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research