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.

A269314 Numbers x that are the sum of the digits of k consecutive numbers starting from x+1.

Original entry on oeis.org

15, 24, 30, 39, 48, 57, 66, 75, 84, 93, 96, 99, 108, 138, 147, 189, 198, 207, 228, 249, 258, 288, 309, 321, 351, 372, 378, 402, 414, 456, 465, 507, 600, 612, 633, 645, 705, 801, 813, 930, 1902, 1911, 1962, 1992, 2010, 2013, 2028, 2037, 2052, 2076, 2085, 2100, 2103
Offset: 1

Views

Author

Paolo P. Lava, Feb 25 2016

Keywords

Comments

All terms are multiples of 3.

Examples

			15 = 1+6 + 1+7;
24 = 2+5 + 2+6 + 2+7;
30 = 3+1 + 3+2 + 3+3 + 3+4 + 3+5.
		

Crossrefs

Cf. A269315.

Programs

  • Maple
    P:= proc(q) local a,b,c,k,n; for n from 1 to q do a:=0; b:=0;
    while a
    				
  • Mathematica
    Select[Range[2100], (x = # + 1; s = Total[IntegerDigits[x]]; While[s < #, x++; s += Total[IntegerDigits[x]]]; s == #) &] (* Robert Price, May 22 2019 *)