OFFSET
1,2
COMMENTS
To compute a(n): interpret the binary representation of n in base A155078(n).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 42:
- the binary representation of 42 is "101010",
- A155078(42) = 4,
- so a(42) = 4^5 + 4^3 + 4^1 = 1092.
PROG
(PARI) a(n) = { my (d=binary(n)); for (b=3, oo, my (r=fromdigits(d, b)); if (r%n==0, return (r))) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 09 2020
STATUS
approved