%I #9 Dec 31 2021 14:48:03
%S 3,6,9,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,1,1,1,
%T 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,
%U 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3
%N Initial decimal digit of Pi*n, Pi=3.1415...
%C a(n) = A000030(A022844(n)).
%t Table[RealDigits[Pi n,10,20][[1,1]],{n,120}] (* _Harvey P. Dale_, Dec 31 2021 *)
%o (PARI) a(n) = digits(floor(n*Pi))[1]; \\ _Michel Marcus_, May 08 2016
%Y Cf. A094561, A094562, A000796.
%K nonn,base
%O 1,1
%A _Reinhard Zumkeller_, May 12 2004
|