login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Generated with DrScheme.
No further terms up to 444444444444. Conjecture: these are all the terms. - Robert Israel, Mar 01 2017
LINKS
J. Wellons, Tables of Shared Digits [archived].
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,fini,full,changed
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)