OFFSET
0,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..10000
EXAMPLE
n=10: floor(Pi*10^n) = 31415926535 -> 3 + 1 + 4 + 1 + 5 + 9 + 2 + 6 + 5 + 3 + 5 = 44 -> 4 + 4 = 8, so a(10)=8.
MAPLE
A089290 := proc(n) Digits:=n+20: return ((floor(Pi*10^n)-1) mod 9) + 1: end: seq(A089290(n), n=0..100); # Nathaniel Johnston, May 04 2011
MATHEMATICA
Table[ Mod[ Floor[ Pi*10^n], 9], {n, 0, 104}] /. 0 -> 9 (* Robert G. Wilson v, Oct 31 2003 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Reinhard Zumkeller, Oct 30 2003
EXTENSIONS
More terms from Ray Chandler and Robert G. Wilson v, Oct 31 2003
STATUS
approved