login
A300238
a(n) = n - A300234(n) = n - A285721(n, phi(n)).
6
1, 1, 1, 3, 1, 4, 1, 7, 7, 7, 1, 10, 1, 10, 7, 15, 1, 16, 1, 17, 17, 16, 1, 22, 21, 19, 25, 24, 1, 24, 1, 31, 24, 25, 26, 34, 1, 28, 34, 37, 1, 38, 1, 38, 37, 34, 1, 46, 43, 47, 41, 45, 1, 52, 50, 52, 51, 43, 1, 54, 1, 46, 59, 63, 55, 58, 1, 59, 58, 57, 1, 70, 1, 55, 67, 66, 64, 72, 1, 77, 79, 61, 1, 80, 61, 64, 75, 82, 1, 84, 80, 80, 85, 70, 82, 94, 1, 94
OFFSET
1,4
FORMULA
a(n) = n - A300234(n) = n - A285721(n, A000010(n)).
PROG
(PARI)
A285721(n, k) = if(n==k, 0, 1 + A285721(abs(n-k), min(n, k)));
A300234(n) = A285721(n, eulerphi(n));
A300238(n) = (n - A300234(n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 02 2018
STATUS
approved