OFFSET
1,1
COMMENTS
A bijection from the positive integers to the nonsquares,A000037.
A003159(which has asymptotic density 2/3) lists index n such that a(n) = 2n. The sequence maps the terms ofA0031591:1 ontoA036554,defining a bijection between them.
Similarly, bijections are defined fromA007417toA325424,fromA325424toA145204\{0}, and from the first in each of the following pairs to the nonsquare integers in the second: (A145204\{0},A036668), (A036668,A007417), (A036554,A003159), (A332820,A332821), (A332821,A332822), (A332822,A332820). Note that many of these are between sets where membership depends on whether a number's squarefree part divides by 2 and/or 3.
Starting from 1, and iterating the sequence as a(1) = 2, a(2) = 3, a(3) = 6, a(6) = 5, a(5) = 10, etc., runs through the squarefree numbers in the order they appear inA019565.-Antti Karttunen,Jun 08 2020
FORMULA
a(k * m^2) = a(k) * m^2.
a(A002110(n)) = prime(n+1).
A334870(a(n)) = n. -Antti Karttunen,Jun 08 2020
EXAMPLE
168 = 42*4 has squarefree part 42 (and square part 4). The smallest prime absent from 42 = 2*3*7 is 5 and the product of all smaller primes is 2*3 = 6. So a(168) = 168*5/6 = 140.
PROG
(PARI) a(n) = {my(c=core(n), m=n); forprime(p=2,, if(c % p, m*=p; break, m/=p)); m; } \\Michel Marcus,May 22 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Munn,May 09 2020
STATUS
approved