OFFSET
1,3
EXAMPLE
n = 7; a(7) = A007088(7) mod 7 = 111 mod 7 = 6.
MATHEMATICA
a[n_] := Mod[FromDigits[IntegerDigits[n, 2]], n]; Array[a, 100] (* Amiram Eldar, Jun 27 2022 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ctibor O. Zizka, Jun 27 2022
STATUS
approved