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!)
A251240 Indices of squares of primes in A098550. 5
4, 5, 11, 40, 124, 187, 273, 313, 505, 747, 751, 1280, 1478, 1563, 1841, 2386, 3130, 3134, 4196, 4493, 4497, 5455, 6002, 6877, 8158, 9047, 9276, 10190, 10194, 11157, 14182, 15086, 16762, 16766, 19758, 20051, 21749, 23435, 24601, 26398, 28655, 28659, 32636 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A098550(a(n)) = A001248(n);
A062799(A098550(a(n))) = 2.
LINKS
PROG
(Haskell)
a251240 n = a251240_list !! (n-1)
a251240_list = filter ((== 2) . a062799 . fromIntegral . a098550) [1..]
(Python)
from gmpy2 import gcd, is_square, is_prime, isqrt
A251240_list, l1, l2, s, b = [], 3, 2, 4, {}
for n in range(4, 10**4):
....i = s
....while True:
........if not i in b and gcd(i, l1) == 1 and gcd(i, l2) > 1:
............l2, l1, b[i] = l1, i, 1
............while s in b:
................b.pop(s)
................s += 1
............if is_square(i) and is_prime(isqrt(i)):
................A251240_list.append(n)
............break
........i += 1 # Chai Wah Wu, Dec 06 2014
CROSSREFS
Cf. A098550, A001248, A062799, subsequence of A251241.
Sequence in context: A109503 A304224 A304135 * A361529 A305041 A316731
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 02 2014
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 June 8 07:10 EDT 2024. Contains 373207 sequences. (Running on oeis4.)