OFFSET
1,2
COMMENTS
This sequence gives the distinct values in A284001, sorted.
If m and k are in this sequence, then so is their product m*k.
If a prime p divides a(n), then so does p!.
A001013 is a subsequence.
Define a set S of polynomials by: (i) 1 is in S; (ii) if P is in S, then x*P and dP/dx are in S; (iii) if the repeated application of (i) and (ii) fails to prove that P is in S then P is not in S. This sequence enumerates the elements of S of degree 0. - Luc Rousseau, Aug 20 2022
Numbers k divisible by A102068(k) (or in other words, numbers k divisible by h(k)! where h(k) is the largest prime factor of k). - David A. Corneth, Aug 20 2022
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Peter Kagey)
EXAMPLE
The first 11 terms can be written as
1 = 1
2 = 1 * 2
4 = 1 * 2 * 2
6 = 1 * 2 * 3
8 = 1 * 2 * 2 * 2
12 = 1 * 2 * 2 * 3
16 = 1 * 2 * 2 * 2 * 2
18 = 1 * 2 * 3 * 3
24 = 1 * 2 * 3 * 4 or 1 * 2 * 2 * 2 * 3
32 = 1 * 2 * 2 * 2 * 2 * 2
36 = 1 * 2 * 2 * 3 * 3
PROG
(SWI-Prolog)
main :- iter(1).
iter(K) :-
(legal(K * x ^ 0) -> (maplist(write, [K, ', ']), flush_output) ; true),
KK is K + 1, iter(KK).
legal(1 * x ^ 0).
legal(K * x ^ N) :-
NN is N + 1, 0 is K mod NN, KK is K / NN,
legal(KK * x ^ NN).
legal(K * x ^ N) :-
((K = 1, N = 1) ; (N > 1)), NN is N - 1,
legal(K * x ^ NN).
% Luc Rousseau, Aug 20 2022
(Python)
import heapq
from math import factorial
from sympy import nextprime
from itertools import islice
def agen(): # generator of terms
oldv, h, primes, nextp, nextfact = 0, [(1, 1)], [], 0, 0
while True:
v, maxp = heapq.heappop(h)
if v != oldv:
yield v; oldv = v
while nextfact < v:
nextp = nextprime(nextp); nextfact = factorial(nextp)
primes.append(nextp); heapq.heappush(h, (nextfact, nextp))
for p in primes:
if p <= maxp: heapq.heappush(h, (v*p, max(maxp, p)))
else: break
print(list(islice(agen(), 60))) # Michael S. Branicky, Aug 20 2022
(PARI) is(n) = if(n==1, return(1)); my(f = factor(n), p = f[#f~, 1]); n%p! == 0 \\ David A. Corneth, Sep 05 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Kagey, Sep 20 2020
STATUS
approved