OFFSET
1,2
COMMENTS
LINKS
FORMULA
a(1) = 1; if A000035(n) = 1 and A010051(n) = 1 [i.e., when n is an odd prime], then a(n) = A000040(a(A000720(n)-1)), otherwise a(n) = A002808(a(A062298(n))). [Here A062298(n) gives the index of n among numbers larger than 1 which are not odd primes, 1 for 2, 2 for 4, 3 for 6, etc.]
As a composition of other permutations:
PROG
CROSSREFS
Inverse: A257729.
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 09 2015
STATUS
approved