[go: up one dir, main page]

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

Search: a164820 -id:a164820
     Sort: relevance | references | number | modified | created      Format: long | short | data
Numbers n such that n-th digit (after decimal point) of Pi and of Euler-Mascheroni constant gamma are the same.
+10
1
7, 32, 33, 40, 42, 43, 67, 72, 126, 133, 135, 137, 140, 158, 166, 169, 170, 182, 186, 191, 199, 204, 245, 246, 248, 266, 274, 284, 297, 313, 321, 329, 330, 344, 352, 372, 382, 389, 407, 419, 429, 435, 442, 458, 463, 487, 492, 495, 501, 505, 506, 551, 555, 570
OFFSET
1,1
FORMULA
Presumably a(n) ~ 10n. - Charles R Greathouse IV, Sep 18 2012
EXAMPLE
Pi = 3.1415926535..., gamma = 0.5772156649...; seventh digit of Pi and seventh digit of gamma are both 6, hence 7 is in the sequence.
MAPLE
P:=proc(i) local a, b, n; a:=convert(evalf(gamma, 1000), string); b:=convert(evalf(Pi-3, 1000), string); for n from 2 by 1 to i do if substring(a, n)=substring(b, n) then print(n-1); fi; od; end: P(900);
PROG
(Magma) m:=600; p:=Pi(RealField(m+1)); sp:=IntegerToString(Round(10^m*(p-3))); g:=EulerGamma(RealField(m)); sg:=IntegerToString(Round(10^m*g)); [ a: a in [1..m] | sp[a] eq sg[a] ]; // Klaus Brockhaus, Sep 03 2009
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
EXTENSIONS
Edited and listed terms verified by Klaus Brockhaus, Sep 03 2009
STATUS
approved

Search completed in 0.005 seconds