OFFSET
1,3
COMMENTS
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
EXAMPLE
At n=8=2^3, represent 2 as 10 in binary, reverse 10 to give 1, and recombine as 1^3=1 = a(8). At n=14=2*7 =(10)*(111) in binary, reverse the factors to give (1)*(111)=1*7=7=a(14).
MAPLE
MATHEMATICA
f[p_, e_] := IntegerReverse[p, 2]^e; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 24 2023 *)
PROG
(Python)
from math import prod
from sympy import factorint
def A162742(n): return prod(int(bin(f)[2:][::-1], 2)**e for f, e in factorint(n).items())
print([A162742(n) for n in range(1, 81)]) # Michael S. Branicky, Oct 07 2024
CROSSREFS
KEYWORD
base,easy,nonn,mult
AUTHOR
R. J. Mathar, Jul 12 2009
EXTENSIONS
Cleaned up the definition and corrected the second example - R. J. Mathar, Aug 03 2009
STATUS
approved