login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A239213 Squares that are divisible by each of their nonzero digits. 4
1, 4, 9, 36, 100, 144, 324, 400, 784, 900, 1024, 1296, 1444, 1764, 2304, 2500, 2916, 3600, 9216, 10000, 10404, 11664, 12100, 12996, 14400, 19044, 22500, 24336, 26244, 28224, 32400, 36864, 39204, 40000, 41616, 44100, 48400, 69696, 78400, 82944, 90000, 93636 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Intersection of A000290 and A002796.

LINKS

Colin Barker, Table of n, a(n) for n = 1..1000

EXAMPLE

39204 is in the sequence because 39204 is divisible by 3, 9, 2 and 4.

MATHEMATICA

dnzQ[n_]:=And@@Divisible[n, Select[IntegerDigits[n], #!=0&]]; Select[ Range[ 500]^2, dnzQ] (* Harvey P. Dale, Dec 04 2014 *)

PROG

(PARI) isOK(n) = my(v=vecsort(digits(n^2), , 8)); for(i=1+(v[1]==0), #v, if(n^2%v[i], return(0))); 1

s=[]; for(n=1, 1000, if(isOK(n), s=concat(s, n^2))); s

CROSSREFS

Cf. A239210, A239211, A239212.

Cf. A000290, A002796.

Sequence in context: A133125 A126161 A179934 * A018224 A149137 A149138

Adjacent sequences:  A239210 A239211 A239212 * A239214 A239215 A239216

KEYWORD

nonn,base

AUTHOR

Colin Barker, Mar 12 2014

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 26 16:44 EDT 2021. Contains 346294 sequences. (Running on oeis4.)