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.

A382173 a(n) is the sum of row n of A382172.

Original entry on oeis.org

0, 1, 2, 1, 6, 7, 4, 2, 6, 16, 1, 5, 8, 14, 10, 5, 10, 6, 3, 15, 2, 7, 13, 4, 26, 24, 19, 9, 1, 31, 6, 10, 8, 10, 20, 4, 22, 2, 13, 14, 11, 11, 24, 5, 31, 13, 8, 4, 30, 80, 17, 20, 30, 18, 2, 11, 17, 9, 14, 30, 16, 5, 10, 25, 36, 29, 38, 6, 9, 63, 16, 2, 40, 64
Offset: 1

Views

Author

Amiram Eldar, Mar 17 2025

Keywords

Comments

The sum of digits (or, equivalently, the number of 1's) of the period of 1/n when expanded in golden ratio base.

Examples

			The first 5 terms and the corresponding rows of A382172 are:
  n | a(n) | row n
 ---+------+-----------------------------------------------------------
  1 |    0 | 0
  2 |    1 | 0, 1, 0
  3 |    2 | 0, 0, 1, 0, 1, 0, 0, 0
  4 |    1 | 0, 0, 1, 0, 0, 0
  5 |    6 | 0, 0, 0 ,1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Total[RealDigits[1/n, GoldenRatio, A001175[n], -1][[1]]]; Array[a, 100] (* using A001175[n] from A001175 *)