[go: up one dir, main page]

login
A109514
Let k be an integer consisting of m digits. Then k is a Pithy number if the k-th m-tuple in the decimal digits of Pi is k.
12
5, 9696, 19781, 199898, 687784863, 4518673035, 7526556436
OFFSET
1,1
COMMENTS
A near-miss '02805451' occurs at position 2805451. - Vaclav Kotesovec, Feb 19 2020
EXAMPLE
5 is a term because the 5th single digit in Pi is 5.
9696 is a term because the 9696th quadruplet in Pi is 9696.
MATHEMATICA
PithyNumbersWith3[m_] := Module[{cc = m(10^m)+m, sol, aa}, sol = Partition[RealDigits[Pi, 10, cc] // First, m]; Do[aa = FromDigits[sol[[i]]]; If[aa==i, Print[{i, aa}]], {i, Length[sol]}]; ]
(* Example: PithyNumbersWith3[5] produces all 5-digit Pithy numbers *)
CROSSREFS
KEYWORD
base,more,nonn
AUTHOR
Colin Rose, Jul 01 2005
EXTENSIONS
a(5)-a(7) from J. Volkmar Schmidt, Dec 17 2023
STATUS
approved