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!)
A371900 Numbers k such that k+1 is composite and A371641(k) != p^2 where p = A020639(k+1) is the smallest prime factor of k+1. 2
406, 766, 988, 1036, 1072, 1138, 1246, 1396, 1402, 1456, 1500, 1642, 1738, 1762, 1768, 1816, 1918, 1926, 1942, 2076, 2116, 2158, 2182, 2278, 2506, 2716, 2746, 2812, 2866, 2920, 2992, 3076, 3148, 3172, 3286, 3316, 3382, 3496, 3568, 3682, 3706, 3712, 3742, 3762 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If k+1 is composite, then A371641(k) <= A020639(k+1)^2. This sequence lists numbers k where the inequality is strict.
LINKS
PROG
(Python)
from itertools import count, islice
from sympy import isprime, primefactors, factorint, integer_log
def A371900_gen(startvalue=2): # generator of terms >= startvalue
for n in count(max(startvalue, 2)):
if not isprime(n+1):
q = min(primefactors(n+1))
for m in range(4, q**2):
f = factorint(m)
if sum(f.values()) > 1:
c = 0
for p in sorted(f):
a = pow(n, integer_log(p, n)[0]+1, m)
for _ in range(f[p]):
c = (c*a+p)%m
if not c:
yield n
break
A371900_list = list(islice(A371900_gen(), 30))
CROSSREFS
Sequence in context: A151634 A368367 A132362 * A348185 A271746 A203944
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Apr 11 2024
STATUS
approved

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 August 16 19:59 EDT 2024. Contains 375177 sequences. (Running on oeis4.)