OFFSET
0,6
LINKS
Michel Marcus, Table of n, a(n) for n = 0..1024
FORMULA
a(n) = n mod A080079(n), for n > 0. - Michel Marcus, Jan 28 2018
PROG
int a(int n) { return n % (A062383(n)-n); }
(PARI) b(n) = if (n, 2*b(n\2), 1);
a(n) = n % (n - b(n)); \\ Michel Marcus, Jan 28 2018
(Python)
def A153587(n): return n % ((1 << n.bit_length())-n) # Chai Wah Wu, Jun 30 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
J. Z. Bradley (jzbradley(AT)gmail.com), Dec 29 2008
EXTENSIONS
More terms from Michel Marcus, Jan 28 2018
STATUS
approved