login
A327120
Inverse permutation to A327119.
2
1, 2, 4, 3, 6, 10, 8, 5, 7, 16, 12, 28, 14, 22, 9, 11, 18, 15, 20, 26, 13, 34, 24, 82, 46, 40, 36, 19, 30, 23, 32, 21, 64, 52, 17, 50, 38, 58, 76, 27, 42, 244, 44, 56, 31, 70, 48, 25, 29, 100, 66, 35, 54, 39, 136, 43, 106, 88, 60, 118, 62, 94, 37, 51, 78, 47, 68, 86
OFFSET
0,2
LINKS
PROG
(PARI) a(n) = { my (d=0); while (n, d = select(t -> t>d, divisors(n))[1]; my (k=n/d); if (k%2, n-=d, n+=d)); return (d+1) } \\ Rémy Sigrist, Sep 14 2019
CROSSREFS
Inverse: A327119.
Sequence in context: A175498 A318452 A083673 * A377837 A131388 A131393
KEYWORD
nonn
AUTHOR
Jennifer Buckley, Sep 13 2019
STATUS
approved