Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A100083
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A100083 Numbers n such that n divides sum_{m=1..n} (m+1)!. +0
1
1, 2, 4, 8, 31, 62, 124, 248, 373, 746, 1492, 2984, 11563, 23126 (list; graph; listen)
OFFSET

1,2

COMMENT

n | sum_{m=1..n} (m+1)! => n | sum_{m=2..n+1} m! => n | sum_{m=2..n-1} m! for n>2 => sum_{m=2..n-1+k} (m! (mod n)) ==0 for all k>=0. If n is present and even then n/2 is present. - Robert G. Wilson v Nov 11 2004.

FORMULA

Numbers n such that n | (A007489(n+1)-1), also n | (A003422(n+2)-2).

EXAMPLE

The first few partial sums of (m+1)!, starting with m=1 are 2,8,32,152,872,5912,46232,409112. Of these, 2 is divisible by 1, 8 is divisible by 2, 152 is divisible by 4, but 32 is not divisible by 3. Therefore the first few terms of this sequence are 1,2,4.

MATHEMATICA

s = -1; Do[s = s + n!; If[ Mod[s, n] == 0, Print[n]], {n, 50000}] (from Robert G. Wilson v Nov 15 2004)

PROGRAM

(PARI) s=0:for(n=1, 5000, s=s+(n+1)!: if(s%n==0, print(n)))

CROSSREFS

Cf. A057245.

Sequence in context: A006398 A053364 A018355 this_sequence A053147 A128055 A061285

Adjacent sequences: A100080 A100081 A100082 this_sequence A100084 A100085 A100086

KEYWORD

nonn

AUTHOR

Mark Hudson (mrmarkhudson(AT)hotmail.com), Nov 08 2004

EXTENSIONS

a(13) & a(14) from Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 15 2004

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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research