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.

A342039 a(n) is the index of the first occurrence of the term in A307437 that is divisible by p and greater than p, p = prime(n).

This page as a plain text file.
%I A342039 #10 Nov 14 2022 23:04:31
%S A342039 256,27,10,42,40,66,40,72,66,42,390,333,180,301,46,104,145,1230,264,
%T A342039 280,396,195,82,132,240,275,408,106,1566,364,693,2080,374,552,222,
%U A342039 1725,2730,162,166,946,178,990,665,480,294,1386,4305,1221,226,456,348,952
%N A342039 a(n) is the index of the first occurrence of the term in A307437 that is divisible by p and greater than p, p = prime(n).
%C A342039 Different from A342038, here a nontrivial multiple of p is required.
%C A342039 a(n) exists for all n: from the formula in A307437 we know a((p-1)/2*p^e) = p^(e+1) if p is an odd prime and (p-1)*p^e+1 is composite. For fixed p, there exist infinitely many e such that (p-1)*p^e+1 is composite.
%C A342039 Conjecture: a(n) >= prime(n)-1 for all n.
%F A342039 For n = 3, prime(n) = 5. The first term in A307437 that is divisible by 5 and greater than 5 is A307437(10) = 25 = 5^2, hence a(3) = 10.
%F A342039 For n = 14, prime(n) = 47. The first term in A307437 that is divisible by 47 and greater than 47 is A307437(46) = 235 = 5*47, hence a(14) = 46.
%o A342039 (PARI) a(n) = my(p=prime(n)); for(k=1, oo, my(m=A307437(k)); if(m>p&&m%p==0, return(k))) \\ see A307437 for its program
%Y A342039 Cf. A307437, A342038.
%K A342039 nonn
%O A342039 1,1
%A A342039 _Jianing Song_, Feb 26 2021