OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..3370 (terms 1..254 from Robert Israel)
EXAMPLE
a(5) = 49 is a term because 49 = 7^2 = 1121_3.
MAPLE
R1:= {1};
S1:= {1, 2};
for i from 1 to 15 do
S1:= map(t -> (3*t+1, 3*t+2), S1);
R1:= R1 union select(issqr, S1);
od:
Rl;
MATHEMATICA
Select[Range[5000]^2, ! MemberQ[IntegerDigits[#, 3], 0] &] (* Amiram Eldar, Jun 01 2023 *)
PROG
(Python)
from itertools import islice, count
from gmpy2 import digits
def A363428_gen(): # generator of terms
return filter(lambda n:'0' not in digits(n, 3), (n**2 for n in count(0)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, Jun 01 2023
STATUS
approved