OFFSET
1,1
COMMENTS
The sequence is infinite as each term can be extended with as many zeros as wanted. The name “anagraprod numbers” comes from “anagram by product”. The “anagrasum numbers” will be soon in the database (December 2017).
LINKS
Georges Brougnard, Table of n, a(n) for n = 1..304
EXAMPLE
135 reproduces the digits 1, 3 and 5 (in a different order) when the products 1x3=3 and 3x5=15 are done. The same with 162 which reproduces the digit 1, 6 and 2 when the products 1x6=6 and 6x2=12 are made.
PROG
(Python)
def ok(n):
s = str(n)
d = list(map(int, s))
sums = [d[i]*d[i+1] for i in range(len(s)-1)]
return sorted(s) == sorted("".join(str(t) for t in sums))
print([k for k in range(10**5) if ok(k)]) # Michael S. Branicky, Nov 27 2024
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Eric Angelini and Georges Brougnard, Dec 13 2017
STATUS
approved