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.

A139384 The number of 3-digit multiples of n whose digits sum to n.

This page as a plain text file.
%I A139384 #5 Nov 21 2013 12:49:20
%S A139384 1,2,6,3,5,12,4,5,45,9,8,17,5,5,13,4,4,25,1,0,4,0,0,1,0,0,1
%N A139384 The number of 3-digit multiples of n whose digits sum to n.
%e A139384 a(1)=1 as 100 is the only 3-digit multiple of 1 whose digits sum to 1, while a(19)=1 as 874 is the only 3-digit multiple of 19 with the property.
%t A139384 dm3[n_]:=Module[{min=n*Ceiling[100/n],max=n*Floor[999/n]},Length[ Select[Range[min,max,n],Total[IntegerDigits[#]]==n&]]]; Array[dm3,30] (* _Harvey P. Dale_, Dec 18 2011 *)
%K A139384 base,full,nonn,fini
%O A139384 1,2
%A A139384 _Ian Duff_, Jun 08 2008