OFFSET
1,2
COMMENTS
In other words, the terms of this sequence are squares or the products of two ternary anagrams.
Leading zeros are ignored.
If m belongs to the sequence, then 9*m also belongs to the sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The ternary representations of 5 and 7 are "12" and "21", respectively.
So 5 and 7 are ternary anagrams, and 35 = 7*5 belongs to the sequence.
PROG
(PARI) is(n, base=3) = fordiv (n, d, if (vecsort(digits(d, base))==vecsort(digits(n/d, base)), return (1))); return (0)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 12 2020
STATUS
approved