A020995 Numbers k such that the sum of the digits of Fibonacci(k) is k.
0, 1, 5, 10, 31, 35, 62, 72, 175, 180, 216, 251, 252, 360, 494, 504, 540, 946, 1188, 2222
Offset: 1
Examples
Fibonacci(10) = 55 and 5+5 = 10.
References
- Alfred S. Posamentier & Ingmar Lehmann, The (Fabulous) Fibonacci Numbers, Prometheus Books, NY, 2007, page 209.
Links
- Leon Bankoff, A Fibonacci Curiosity, Fibonacci Quarterly 14, Feb. 1976, p. 17.
- Pat Ballew, Fibonacci Digit Sums, Pat's Blog, Sunday, 5 August 2012.
- Ron Knott, The Mathematical Magic of the Fibonacci Numbers: Digit Sums
- Manfred Scheucher, Sage Script
- David Terr, On the Sums of Digits of Fibonacci Numbers, Fibonacci Quarterly 34, Aug. 1996, pp. 349-355.
Programs
-
Mathematica
Do[ If[ Apply[ Plus, IntegerDigits[ Fibonacci[n]]] == n, Print[n]], {n, 1, 10^5} ] (* Sven Simon *) Do[ If[ Mod[ Fibonacci[n], 9] == Mod[n, 9], If[ Plus @@ IntegerDigits[ Fibonacci[n]] == n, Print[n]]], {n, 0, 10^6}] (* Robert G. Wilson v *) Select[Range[0, 10^5], Plus @@ IntegerDigits[Fibonacci[ # ]] == # &] (* Ron Knott, Oct 30 2010 *)
-
PARI
isok(n) = sumdigits(fibonacci(n)) == n; \\ Michel Marcus, Feb 18 2015
Comments