OFFSET
1,1
COMMENTS
A permutation ofA028983.
A007417(which has asymptotic density 3/4) lists index n such that a(n) = 3n. The sequence maps the terms ofA0074171:1 ontoA145204\{0}, defining a bijection between them.
Similarly, bijections are defined from the odd numbers (A005408) to the nonsquare odd numbers (A088828), from the positive even numbers (A299174) toA088829,fromA003159to the nonsquares inA003159,and fromA325424to the nonsquares inA036668.The latter two bijections are between sets where membership depends on whether a number's squarefree part divides by 2 and/or 3.
FORMULA
EXAMPLE
84 = 21*4 has squarefree part 21 (and square part 4). The smallest odd prime absent from 21 = 3*7 is 5 and the product of all smaller odd primes is 3. So a(84) = 84*5/3 = 140.
PROG
(PARI) a(n) = {my(c=core(n), m=n); forprime(p=3,, 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