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.

A278833 Indices of records of A004090(n) - n, where A004090 is the sum of digits of the Fibonacci numbers A000045.

Original entry on oeis.org

0, 6, 11, 16, 58, 178, 195, 273, 695, 862, 989, 2477, 2619
Offset: 1

Views

Author

M. F. Hasler, Dec 28 2016

Keywords

Comments

For indices n = 1, 5, 83, 156 and 512, the value of the difference A004090(n) - n is the same as for the preceding record (see A278834). So the sequence of indices of records in the weak sense of >= would be (0, 1, 5, 6, 11, 16, 58, 83, 156, 178, 195, 273, 512, 695, 862, 989, 2477, 2619).
Conjectured to be finite and complete. Indeed it appears that 0.9*n < A004090(n) < n for all sufficiently large n.

Crossrefs

Cf. A000045 (Fibonacci numbers), A004090 (their digital sums), A278834 (the record values corresponding to the indices listed here).
Except for the initial 0, this appears to be a subsequence of A264935.

Programs

  • Mathematica
    Function[t, Flatten@ Map[First@ Position[t, #] - 1 &, Union@ Rest@ FoldList[Max, 0, t]]]@ Table[Plus @@ IntegerDigits@ Fibonacci@n - n, {n, 0, 10^4}] (* Michael De Vlieger, Dec 28 2016 *)
  • PARI
    m=-1; for(k=0, 1e4, sumdigits(fibonacci(k))-k>m&&print1(k", ")+m=sumdigits(fibonacci(k))-k)

A280185 a(n) = n - A004090(n), where A004090 is the sum of digits of the Fibonacci numbers A000045.

Original entry on oeis.org

0, 0, 1, 1, 1, 0, -2, 3, 5, 2, 0, -6, 3, 5, -3, 8, -8, -5, -1, 5, -4, 1, 5, -5, -3, 6, 7, -2, 7, 6, 13, 0, 2, -1, -3, 0, 9, 2, -6, -4, 16, 10, -4, 2, 11, 16, 11, 10, -6, -6, 4, 22, 4, 12, 1, -3, 8, 5, -15, 15, 6, 8, 0, 2, 13, -2, -7, 8, 17, 4, 8, 25, 0, 9, -8, 10, 10, -9, -2, 21, -4, 2, 18, -15, 12, -4, 6, -10, 19, -5, 17, 23, 14, 28, 5, 4, 6, -3, 16, -2
Offset: 0

Views

Author

M. F. Hasler, Dec 28 2016

Keywords

Comments

Conjectured to increase to infinity. It appears that the slope of A004090(n) is roughly 0.93, at least in the range 0..10^5.
I conjecture that this sequence takes its minimum at a(2619) = -92. - M. F. Hasler, Dec 30 2016

Examples

			a(2) = a(3) = 1 because A000045(2) = 1 = A004090(2), its digital sum, A000045(3) = 2 = A004090(3), and 2 - 1 = 3 - 2 = 1.
		

Crossrefs

Cf. A000045 (Fibonacci numbers), A004090 (their digital sums), A278834 & A278833 (record values of this sequence and corresponding indices), A264935.

Programs

  • Mathematica
    Table[n - Total@ IntegerDigits@ Fibonacci@ n, {n, 0, 99}] (* Michael De Vlieger, Dec 28 2016 *)
  • PARI
    A280185(n)=n-sumdigits(fibonacci(n))
    /* To produce the b-file; can be used for searches or similar purpose, this is faster than to compute fib(n) anew for each term. */
    b=-a=1;for(n=0,1e5,write("/tmp/A280185.txt",n" ",n-sumdigits(a=b+b=a)))

Formula

a(n) = n - A004090(n) = n - A007953(A000045(n)).
Showing 1-2 of 2 results.