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.
%I A252668 #23 Oct 15 2019 11:47:18 %S A252668 1,2,5,4,14,6,7,16,21,23,24,0,0,32,19,20,22,186,177,26,29,27,61,236, %T A252668 34,0,36,78,54,0,41,87,43,44,188,0,55,118,229,66,59,70,69,60,58,0,279, %U A252668 147,81,610,74,325,85,101,75,179,0,369,100,97,0,91,193,95,205 %N A252668 Let k be the smallest number such that s(k) = odd part of digital sum of 5^k is a multiple of prime(n); then a(n)=k, if s(k) = prime(n). Otherwise, or if there is no such k, a(n)=0. %C A252668 We conjecture that k in the definition exists for every n>=3. %C A252668 a(n)=0 for n=14,15,28,32,38,48,59,63,69,76,91,... %C A252668 Note that we can continue the series of sequences A252666, A252668, ... by changing 2^k in the definition to 5^k, 7^k, 11^k, ..., prime(i)^k, ... . %C A252668 Let the position of the first zero in the sequence corresponding to prime(i) be u(i). Then we call v(i)=u(i)-3 the exponential digital index (EDI) of prime(i). It is clear that in the case of i=2, prime(i)=3 and EDI(3)=0. %C A252668 EDI(p) shows how many consecutive primes, beginning with 5, we obtain in the considered sequence corresponding to prime p. %e A252668 If n=4, evidently, k=2, since 5^2=25, s(2)= 2+5 = 7 = prime(4). So a(4)=2. %e A252668 If n=14, then k=57, but s(57)>prime(14)=43, so a(14)=0 (the equation s(x)=43 has the smallest solution x=107). %o A252668 (PARI) s(k) = my(sd = sumdigits(5^k)); sd/2^valuation(sd, 2); %o A252668 a(n) = {p = prime(n); k = 1; while ((sk=s(k)) % p, k++); if (sk == p, k, 0);} \\ _Michel Marcus_, Dec 29 2014 %Y A252668 Cf. A251964, A252280, A252281, A252282, A252283, A252666. %K A252668 nonn,base %O A252668 3,2 %A A252668 _Vladimir Shevelev_, Dec 20 2014 %E A252668 More terms from _Peter J. C. Moses_, Dec 20 2014