login
Position of first occurrence of n after the decimal point in the decimal expansion of 1/Pi.
0

%I #17 Feb 07 2024 09:01:40

%S 5,2,26,1,29,19,9,13,3,6,297,64,50,385,45,18,116,65,2,41,393,102,85,

%T 125,35,93,26,86,32,43,4,1,92,58,59,69,126,12,165,151,36,717,437,196,

%U 226,29,60,160,46,55,30,112,25,19,108,90,105,134,123,70,88,9,446,149,236,511

%N Position of first occurrence of n after the decimal point in the decimal expansion of 1/Pi.

%C a(0) = A133268(1),

%C a(1) = A134251(1),

%C a(2) = A134252(1),

%C a(3) = A134253(1),

%C a(4) = A134254(1),

%C a(5) = A134255(1),

%C a(6) = A134256(1),

%C a(7) = A134257(1),

%C a(8) = A134258(1),

%C a(9) = A134259(1),

%C a(10) = A134260(1). - _Artur Jasinski_, Oct 16 2007

%e 1/Pi = 0.31830988618379067153776752674... so the first occurrence of 0 after the decimal point is at position 5; first occurrence of 1 is at position 2; first occurrence of 2 is at position 26; etc.

%t Table[ SequencePosition[#, IntegerDigits@ n][[1, 1]], {n, 0, 65}] &@ First@ RealDigits@ N[1/Pi, 10^4] (* _James C. McMahon_, Feb 06 2024 *)

%Y Cf. A032445 and A014777 for Pi, A078197 for e. Digits of 1/Pi=A049541.

%Y Cf. A037000, A014777, A133268, A134251, A134252, A134253, A134254, A134255, A134256, A134257, A134258, A134259, A134260.

%K base,easy,nonn

%O 0,1

%A Mark Hudson (mrmarkhudson(AT)hotmail.com), Nov 03 2004

%E Edited by _N. J. A. Sloane_, Jun 30 2008 at the suggestion of _R. J. Mathar_