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”).

A050230
Starting positions of strings of 2 4's in the decimal expansion of Pi.
1
59, 125, 182, 201, 217, 453, 511, 655, 726, 804, 833, 1249, 1252, 1508, 1639, 1904, 2085, 2261, 2309, 2350, 2707, 2708, 2764, 2799, 2827, 2845, 2928, 2929, 3109, 3139, 3372, 3476, 3477, 3681, 3717, 3787, 3809, 3810, 3851, 3866, 3867, 3905
OFFSET
1,1
MATHEMATICA
q=8!; z=4; a=RealDigits[Pi, 10, q]; lst={}; Do[b=a[[1]][[n]]; c=a[[1]][[n+1]]; If[b==z&&c==z, AppendTo[lst, n-1]], {n, q-1}]; lst (* Vladimir Joseph Stephan Orlovsky, Jun 19 2009 *)
Flatten[Position[Partition[Rest[RealDigits[Pi, 10, 5000][[1]]], 2, 1], _? (#=={4, 4}&)]] (* Harvey P. Dale, Jul 20 2011 *)
CROSSREFS
Cf. A000796.
Sequence in context: A141934 A044246 A044627 * A138633 A237687 A098032
KEYWORD
nonn,base
STATUS
approved

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy