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.

A329364 Numbers k such that k, k+2, k+4 are prime powers.

This page as a plain text file.
%I A329364 #18 Nov 12 2019 23:57:06
%S A329364 1,3,5,7,9,23,25,27,79,239,59049,450283905890997359,
%T A329364 36472996377170786399
%N A329364 Numbers k such that k, k+2, k+4 are prime powers.
%C A329364 Intersection of A120431 and A164572.
%C A329364 a(14) > 10^3000, if it exists. Note that one among k, k+2, k+4 is always divisible by 3, so it must be a power of 3. - _Giovanni Resta_, Nov 12 2019
%e A329364 7 is a term since 7, 9, and 11 are all prime powers.
%t A329364 pp[w_] := w == 1 || And @@ PrimePowerQ[w + {0,2,4}]; Reap[ Do[ If[pp[n - k], Sow[n-k]], {n, 3^Range[100]}, {k, {4, 2, 0}}]][[2, 1]] (* _Giovanni Resta_, Nov 12 2019 *)
%o A329364 (PARI) isok(k) = (k==1) || (isprimepower(k) && isprimepower(k+2) && isprimepower(k+4)); \\ _Michel Marcus_, Nov 12 2019
%Y A329364 Cf. A001359, A000961, A120431, A164572.
%K A329364 nonn,more
%O A329364 1,2
%A A329364 _Lior Manor_, Nov 12 2019
%E A329364 a(12)-a(13) from _Giovanni Resta_, Nov 12 2019