A361331 Smallest index of n-th prime in A361330, or -1 if it does not appear.
1, 2, 5, 22, 160, 1770, 23022, 391390, 7436428
Offset: 1
Extensions
a(7)-a(8) from Winston de Greef, Mar 18 2023
a(9) from Scott R. Shannon, Mar 20 2023
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.
a(5) = 6 as a(4) = 2 = 2*2 which does not contain 3 as a prime factor, and 6 is the smallest unused number that is a multiple of 3. a(6) = 5 as a(5) = 6 = 2*3 which does not contain 5 as a prime factor, and 5 is the smallest unused number that is a multiple of 5.
nn = 75; c[] = 0; a[1] = c[1] = 1; u = 2; Do[q = 2; While[! CoprimeQ[q, a[i - 1]], Set[q, NextPrime[q]]]; m = Ceiling[u/q]; While[c[m*q] != 0, m++]; Set[{a[i], c[m*q]}, {m*q, i}]; If[m*q == u, While[c[u] > 0, u++]], {i, 2, nn}]; Array[a, nn] (* _Michael De Vlieger, May 03 2022 *)
from itertools import count, islice from sympy import prime, primepi, primefactors def A351495_gen(): # generator of terms aset, cset = set(), {1} yield 1 while True: for i in count(1): if not i in aset: p = prime(i) for j in count(1): if (m:=j*p) not in cset: yield m cset.add(m) break break aset = set(map(primepi,primefactors(m))) A351495_list = list(islice(A351495_gen(),30)) # Chai Wah Wu, Mar 18 2023
Comments