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.

Showing 1-2 of 2 results.

A087143 Numbers n such that sum of digits of n is divisible by digital root of n.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 46, 48, 50, 51, 52, 53, 54, 55, 57, 60, 61, 62, 63, 64, 66, 70, 71, 72, 73, 75, 80, 81, 82, 84, 90
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 18 2003

Keywords

Comments

A007953(a(n)) mod A010888(a(n)) = 0; multiples of 9 are a subsequence (A008591, n>0).

Examples

			84 is a term because 12 (its sum of digits) is divisible by 3 (its digital root).
		

Crossrefs

Complement of A087144.

Programs

  • Maple
    A087143 := proc(n) option remember: local k: if(n=1)then return 1:fi: for k from procname(n-1)+1 do if(add(d, d=convert(k,base,10)) mod (((k-1) mod 9) + 1) = 0)then return k: fi: od: end: seq(A087143(n),n=1..100); # Nathaniel Johnston, May 05 2011
  • Mathematica
    sddrQ[n_]:=Module[{sd=Total[IntegerDigits[n]],dr},dr=sd;While[dr>9, dr= Total[ IntegerDigits[dr]]];Divisible[sd,dr]]; Select[Range[100],sddrQ] (* Harvey P. Dale, May 22 2013 *)
  • PARI
    is(n)=sumdigits(n)%((n-1)%9+1) == 0 \\ Charles R Greathouse IV, Oct 13 2022

A357772 Numbers with a sum of digits which is not 7-smooth.

Original entry on oeis.org

29, 38, 47, 49, 56, 58, 65, 67, 74, 76, 83, 85, 89, 92, 94, 98, 119, 128, 137, 139, 146, 148, 155, 157, 164, 166, 173, 175, 179, 182, 184, 188, 191, 193, 197, 199, 209, 218, 227, 229, 236, 238, 245, 247, 254, 256, 263
Offset: 1

Views

Author

Keywords

Examples

			2 + 9 = 11 which is not of the form 2^a*3^b*5^c*7^d, so 29 is in the sequence.
		

Crossrefs

Cf. A087144.

Programs

  • PARI
    smooth(n,s)=forprime(p=2,s,n/=p^valuation(n,p)); n==1
    is(n)=!smooth(sumdigits(n),7)

Formula

a(n) ~ n.
Showing 1-2 of 2 results.