cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A244857 Numbers divisible by both the sum of the squares of their digits and the product of their digits.

This page as a plain text file.
%I A244857 #16 Mar 30 2021 12:02:47
%S A244857 1,111,315,1344,3312,4416,6624,11112,12312,31311,114192,121716,134112,
%T A244857 134136,141312,231336,282624,313416,314112,411648,431136,613116,
%U A244857 628224,1112232,1112832,1121232,1122112,1122312,1122912,1143216,1211232,1212112,1212192,1212312
%N A244857 Numbers divisible by both the sum of the squares of their digits and the product of their digits.
%C A244857 Subsequence of A034087.
%C A244857 The property "numbers divisible by the sum of the squares and product of their digits" leads to the Diophantine equation t*x1*x2*...*xr=s*(x1^2+x2^2+...+xr^2), where t and s are divisors of n; xi is from [1...9].
%C A244857 Intersection of A034087 and A007602. - _Jens Kruse Andersen_, Jul 13 2014
%H A244857 David A. Corneth, <a href="/A244857/b244857.txt">Table of n, a(n) for n = 1..10000</a>
%e A244857 315 is in the sequence because 3^2+1^2+5^2 = 35 divides 315 and 3*1*5 = 15 divides 315.
%t A244857 dspQ[n_]:=Module[{idn=IntegerDigits[n], t}, t=Times@@idn; t!=0 && Divisible[n, Total[idn^2]] && Divisible[n, t]]; Select[Range[2*10^6], dspQ]
%o A244857 (PARI) isok(n) = (d = digits(n)) && (prd = prod(i=1, #d, d[i])) && !(n % prd) && !(n % sum(i=1, #d, d[i]^2)); \\ _Michel Marcus_, Jul 07 2014
%Y A244857 Cf. A007602, A034087, A038186, A117562.
%K A244857 nonn,base
%O A244857 1,2
%A A244857 _Michel Lagneau_, Jul 07 2014