login
Inverted decimal expansion of Pi.
2

%I #19 Nov 22 2023 12:33:29

%S 11,2,-11,-3,4,-7,-28,7,-12,-3,-3,-4,-3,5,3,8,-3,26,-8,4,-7,15,6,8,-4,

%T 5,4,-4,-3,-347,2,4,-3,-3,12,3,-3,-5,3,-6,-3,9,-3,-3,8,-4,-95,2,2,-13,

%U -4,3,2,-3,-5,180,-3,18,24,-11,-3,3,5,2,-4,-4,2,-8,10,2,-8,4,-3,-9,3,2,-3,-3,-3,-3

%N Inverted decimal expansion of Pi.

%H Paolo Xausa, <a href="/A066795/b066795.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = floor(1/(1/2-10^n*Pi+floor(10^n*Pi))).

%t A066795[n_]:=Floor[1/(1/2-10^n*Pi+Floor[10^n*Pi])];Array[A066795,100] (* _Paolo Xausa_, Nov 22 2023 *)

%o (PARI) a(n)=floor(1/(1/2-10^n*Pi+floor(10^n*Pi))); \\ _Michel Marcus_, Nov 20 2013

%Y Cf. A000796, A065529.

%K sign,base

%O 1,1

%A _Benoit Cloitre_, Jan 18 2002