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!)
A054037 Numbers k such that k^2 contains exactly 9 different digits. 14
10124, 10128, 10136, 10214, 10278, 11826, 12363, 12543, 12582, 12586, 13147, 13268, 13278, 13343, 13434, 13545, 13698, 14098, 14442, 14676, 14743, 14766, 15353, 15681, 15963, 16549, 16854, 17252, 17529, 17778, 17816, 18072, 19023, 19377, 19569, 19629, 20089 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
There are three prime numbers {13147, 20089, 21397} and corresponding squares {172843609, 403567921, 457831609} necessarily contain zero (otherwise n and n^2 are divisible by 3). - Zak Seidov, Jan 18 2012
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..10000 (terms 1..83 from Zak Seidov)
MAPLE
f := []; for i from 0 to 200 do if nops({op(convert(i^2, base, 10))})=9 then f := [op(f), i] fi; od; f;
MATHEMATICA
okQ[n_] := Module[{n2=n^2}, Max[DigitCount[n2, 10]]==1 && IntegerLength[n2]==9]; Select[Range[20000], okQ] (* Harvey P. Dale, Mar 20 2011 *)
PROG
(Python)
from itertools import count, islice
def agen(): yield from (k for k in count(10**4) if len(set(str(k*k)))==9)
print(list(islice(agen(), 37))) # Michael S. Branicky, May 24 2022
CROSSREFS
Sequence in context: A157711 A159863 A234180 * A289856 A023066 A248487
KEYWORD
nonn,base
AUTHOR
Asher Auel, Feb 28 2000
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 August 25 09:27 EDT 2024. Contains 375425 sequences. (Running on oeis4.)