The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A098934 Numbers n such that the sum of the first n digits of Pi are divisible by n. 0

%I

%S 1,2,9,11,16

%N Numbers n such that the sum of the first n digits of Pi are divisible by n.

%C For large n, A046974(n-1)/n is very close to 4.5, so is never an integer. - _David Wasserman_, Feb 27 2008

%e a[1] = 1 since 3 is divisible by 1.

%e a[2] = 2 since 3 + 1 = 4 is divisible by 2.

%e a[3] != 3 since 3 + 1 + 4 = 8 is not divisible by 3.

%t \$MaxPrecision = 2500000; pd = RealDigits[N[Pi, 2000000]][[1]]; s = 0; Do[s = s + pd[[n]]; If[ Mod[s, n] == 0, Print[n]], {n, 2000000}] (* _Robert G. Wilson v_, Oct 21 2004 *)

%Y Cf. A046974.

%K base,easy,fini,full,nonn

%O 1,2

%A Anne M. Donovan (anned3005(AT)aol.com), Oct 20 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified November 30 06:28 EST 2021. Contains 349419 sequences. (Running on oeis4.)