login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A066795
Inverted decimal expansion of Pi.
2
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, 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, -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
OFFSET
1,1
FORMULA
a(n) = floor(1/(1/2-10^n*Pi+floor(10^n*Pi))).
MATHEMATICA
A066795[n_]:=Floor[1/(1/2-10^n*Pi+Floor[10^n*Pi])]; Array[A066795, 100] (* Paolo Xausa, Nov 22 2023 *)
PROG
(PARI) a(n)=floor(1/(1/2-10^n*Pi+floor(10^n*Pi))); \\ Michel Marcus, Nov 20 2013
CROSSREFS
Sequence in context: A367812 A284212 A273877 * A079366 A351653 A226110
KEYWORD
sign,base
AUTHOR
Benoit Cloitre, Jan 18 2002
STATUS
approved