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.

A351650 Integers m such that digsum(m) divides digsum(m^2) where digsum = sum of digits = A007953.

This page as a plain text file.
%I A351650 #35 Feb 19 2022 04:52:31
%S A351650 1,2,3,9,10,11,12,13,18,19,20,21,22,24,27,30,31,33,36,42,45,46,54,55,
%T A351650 63,72,74,81,90,92,99,100,101,102,103,108,110,111,112,113,117,120,121,
%U A351650 122,123,126,128,130,132,135,144,145,153,162,171,180,189,190,191,198
%N A351650 Integers m such that digsum(m) divides digsum(m^2) where digsum = sum of digits = A007953.
%C A351650 This is a generalization of a problem proposed by French site Diophante in link.
%C A351650 The smallest term k such that the corresponding quotient = n is A280012(n).
%C A351650 The quotient is 1 iff m is in A058369 \ {0}.
%C A351650 If k is in A061909, then digsum(k^2) = digsum(k)^2.
%C A351650 If k is a term, 10*k is also a term.
%C A351650 There are infinitely many m such that both m and m+1 are in the sequence, for example subsequence A002283 \ {0}.
%C A351650 Corresponding quotients are in A351651.
%H A351650 Diophante, <a href="http://www.diophante.fr/problemes-par-themes/arithmetique-et-algebre/a1-pot-pourri/4786-a1730-des-chiffres-a-sommer-pour-un-entier">A1730 - Des chiffres à sommer pour un entier</a> (in French).
%F A351650 A004159(a(n)) = A007953(a(n)) * A351651(n).
%e A351650 digit sum of 42 = 4+2 = 6; then 42^2 = 1764, digit sum of 1764 = 1+7+6+4 = 18; as 6 divides 18, 42 is a term.
%t A351650 Select[Range[200], Divisible[Total[IntegerDigits[#^2]], Total[IntegerDigits[#]]] &] (* _Amiram Eldar_, Feb 16 2022 *)
%o A351650 (PARI) is(n)=sumdigits(n^2)%sumdigits(n) == 0 \\ _David A. Corneth_, Feb 16 2022
%o A351650 (Python)
%o A351650 def sd(n): return sum(map(int, str(n)))
%o A351650 def ok(n): return sd(n**2)%sd(n) == 0
%o A351650 print([m for m in range(1, 200) if ok(m)]) # _Michael S. Branicky_, Feb 16 2022
%Y A351650 Cf. A004159, A007953, A351651.
%Y A351650 Subsequences: A002283, A011557, A052268, A058369, A061909, A093136, A093138, A254066, A280012.
%K A351650 nonn,base
%O A351650 1,2
%A A351650 _Bernard Schott_, Feb 16 2022
%E A351650 More terms from _David A. Corneth_, Feb 16 2022