A067863 Numbers k such that k divides the sum of digits of 7^k.
1, 13, 67, 94, 139, 220, 805
Offset: 1
Examples
13 divides the sum of digits of 7^13 (i.e., 9 + 6 + 8 + 8 + 9 + 0 + 1 + 0 + 4 + 0 + 7 = 52), so 13 is in the sequence.
Programs
-
Mathematica
For[n = 1, n < 2000, n++, a := DigitCount[7^n]; If[IntegerQ[Sum[a[[i]]*i, {i, 1, 9}]/n], Print[n]]] (* Stefan Steinerberger, Mar 14 2006 *) Select[Range[1000],Mod[Total[IntegerDigits[7^#]],#]==0&] (* Harvey P. Dale, Sep 22 2024 *)
Extensions
Edited by Jon E. Schoenfield, May 29 2010
Comments