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.

A062927 Numbers k such that k divides the sum of digits of 9^k.

Original entry on oeis.org

1, 3, 6, 9, 27, 90, 108, 144, 243
Offset: 1

Views

Author

Keywords

Comments

Next term after 243, if it exists, is greater than 30000. - Ryan Propper, Jun 18 2005
No more terms < 1000000. - Lars Blomberg, May 05 2011

Examples

			3 divides the sum of digits of 9^3 (i.e., 7 + 2 + 9 = 18), so 3 is a term.
		

Programs

  • Mathematica
    Do[If[Mod[Plus @@ IntegerDigits[9^n, 10], n] == 0, Print[n]], {n, 1, 30000}] (* Ryan Propper, Jun 18 2005 *)
    Select[Range[300],Divisible[Total[IntegerDigits[9^#]],#]&] (* Harvey P. Dale, Jun 03 2015 *)