login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A136967
Numbers k such that k and k^2 use only the digits 1, 2, 3 and 4.
0
1, 2, 11, 12, 21, 111, 1111
OFFSET
1,2
COMMENTS
Generated with DrScheme.
No further terms up to 444444444444. Conjecture: these are all the terms. - Robert Israel, Mar 01 2017
From Pontus von Brömssen, Apr 23 2024: (Start)
a(8) > 10^52 (if it exists).
If k = x*10^m is a term where 1 < x < 10 and k > 1111, then 1.1141114132411144244121413311312223343222114323114131 < x < 1.1141424242144423132424212124444121442241144431212312.
(End)
LINKS
EXAMPLE
21^2 = 441, so 21 is a term.
MAPLE
dmax:= 8: # to get all terms of up to dmax digits
f:= proc(n) local L; L:= convert(n^2, base, 10); min(L) >= 1 and max(L) <= 4 end proc:
A:= NULL:
for d from 1 to dmax do
for i from 0 to 4^d-1 do
R:= convert(i+4^d, base, 4);
n:= add((R[i]+1)*10^(i-1), i=1..d);
if filter(n) then A:= A, n fi
od
od:
A; # Robert Israel, Mar 01 2017
PROG
(PARI) isok(n) = {vno = [0, 5, 6, 7, 8, 9]; !#setintersect(Set(digits(n)), vno) && !#setintersect(Set(digits(n^2)), vno); } \\ Michel Marcus, Mar 01 2017
CROSSREFS
Sequence in context: A089600 A114034 A136970 * A213975 A137001 A136996
KEYWORD
base,nonn,more
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved