The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A360204 Primitive prime powers. p is a primitive prime power iff it is an odd prime power that exceeds the preceding odd prime power by more than any smaller odd prime power does. ('Prime power' defined in the sense of A246655.) 0

%I #25 Feb 02 2023 06:48:53

%S 5,17,37,97,149,211,307,907,1151,1361,5623,8501,9587,15727,19661,

%T 31469,156007,360749,370373,492227,1349651,1357333,2010881,4652507,

%U 17051887,20831533,47326913,122164969,189695893,191913031,387096383,436273291,1294268779

%N Primitive prime powers. p is a primitive prime power iff it is an odd prime power that exceeds the preceding odd prime power by more than any smaller odd prime power does. ('Prime power' defined in the sense of A246655.)

%C Conjecture: Primitive prime powers are primes.

%e The first few terms of the sequence are the minuends in the following differences. The differences are strictly increasing by definition.

%e 5 - 3 = 2;

%e 17 - 13 = 4;

%e 37 - 31 = 6;

%e 97 - 89 = 8;

%e 149 - 139 = 10;

%e 211 - 199 = 12;

%e 307 - 293 = 14;

%e 907 - 887 = 20.

%e The example above might suggest the subtrahends are also prime. In general they are not, as the example a(10) shows, where 1361 - 1331 = 30, but 1331 is not prime. - _Ivan N. Ianakiev_, Feb 02 2023

%t a[1] = 5; candidates[n_] := Select[Range[NextPrime[n, -1], n], OddQ[#] && PrimePowerQ[#]&];

%t difference[n_] := candidates[n][[-1]] - candidates[n][[-2]];

%t a[n_] := a[n] = Module[{k = a[n-1]+2}, While[OddQ[k] && !PrimePowerQ[k] || difference[k] <= difference[a[n-1]], k = k+2]; k];

%t a/@Range[16] (* _Ivan N. Ianakiev_, Feb 02 2023 *)

%o (SageMath)

%o def A360204_list(n):

%o R = []; L = 3; MAX = 1

%o for C in xsrange(3, n, 2):

%o if C.is_prime_power():

%o if C - L > MAX:

%o MAX = C - L

%o R.append(C)

%o L = C

%o return R

%o print(A360204_list(6000))

%Y Cf. A246655, A061345.

%K nonn

%O 1,1

%A _Peter Luschny_, Feb 01 2023

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 13:17 EDT 2024. Contains 372552 sequences. (Running on oeis4.)