cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A065977 Numbers k that divide the number formed by the first k decimal digits of e (A039920(k)).

This page as a plain text file.
%I A065977 #18 Dec 29 2022 09:13:53
%S A065977 1,9,13,15,220,1610,1822,4879,61992,124838,604739,771780,802771,
%T A065977 915973,918868,2722883,3466893
%N A065977 Numbers k that divide the number formed by the first k decimal digits of e (A039920(k)).
%t A065977 d = Drop[ First[ RealDigits[E, 10, 10^5 +1]], 1]; Do[ If[ IntegerQ[ FromDigits[Take[d, n]]/n], Print[n]], {n, 1, 65240} ]
%o A065977 (Python)
%o A065977 from sympy import E
%o A065977 digits_of_e = str(E.n(13*10**4))[2:] # or load data from file
%o A065977 def afind():
%o A065977     kint = 0
%o A065977     for k in range(1, len(digits_of_e)):
%o A065977         kint *= 10
%o A065977         kint += int(digits_of_e[k-1])
%o A065977         if kint%k == 0: print(k, end=", ")
%o A065977 afind() # _Michael S. Branicky_, Dec 28 2022
%Y A065977 Cf. A039920.
%K A065977 nonn,base,more
%O A065977 1,2
%A A065977 _Jason Earls_, Dec 09 2001
%E A065977 a(9) from _Robert G. Wilson v_, Dec 10 2001
%E A065977 a(10)-a(17) from _Michael S. Branicky_, Dec 28 2022