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.

A072081 Numbers divisible by the square of the sum of their digits in base 10.

This page as a plain text file.
%I A072081 #35 Jan 10 2025 09:11:39
%S A072081 1,10,20,50,81,100,112,162,200,243,324,392,400,405,500,512,605,648,
%T A072081 810,972,1000,1053,1100,1120,1134,1183,1215,1296,1400,1620,1701,1900,
%U A072081 1944,2000,2025,2106,2156,2240,2268,2300,2401,2430,2511,2592,2704,2800,2916
%N A072081 Numbers divisible by the square of the sum of their digits in base 10.
%C A072081 If k is a term, then 10 * k is a term. There are an infinite number of terms that are not divisible by 10. The numbers m = 24 * 10^(42 * k - 40) +1, k >= 1, are divisible by 7^2 = digsum(m)^2. Also, the numbers s = 491 * 10^(42 * k - 8) + 3, k >= 1, are divisible by 17^2 = digsum(s)^2. - _Marius A. Burtea_, Mar 19 2020
%C A072081 The numbers 2^A095412(n), n >= 5, are terms. - _Marius A. Burtea_, Apr 02 2020
%H A072081 Donovan Johnson, <a href="/A072081/b072081.txt">Table of n, a(n) for n = 1..1000</a>
%e A072081 k=9477, sumdigits(9477)=27, q=9477=27*27*13.
%t A072081 sud[x_] := Apply[Plus, IntegerDigits[x]] Do[s=sud[n]^2; If[IntegerQ[n/s], Print[n]], {n, 1, 10000}]
%t A072081 Select[Range[3000],Divisible[#,Total[IntegerDigits[#]]^2]&] (* _Harvey P. Dale_, May 04 2011 *)
%o A072081 (PARI) for(n=1,10^4,s=sumdigits(n);if(!(n%s^2),print1(n,", "))) \\ _Derek Orr_, Apr 29 2015
%o A072081 (Magma) [k:k in [1..3000]| k mod &+Intseq(k)^2 eq 0]; // _Marius A. Burtea_, Mar 19 2020
%o A072081 (Python)
%o A072081 def ok(n): return n and n%sum(di for di in map(int, str(n)))**2 == 0
%o A072081 print([k for k in range(3000) if ok(k)]) # _Michael S. Branicky_, Jan 10 2025
%Y A072081 Cf. A003132, A005349, A003634.
%K A072081 base,nonn,easy
%O A072081 1,2
%A A072081 _Labos Elemer_, Jun 14 2002