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-4 of 4 results.

A292270 Sum of all partial fractions in the algorithm used for calculation of A002326(n).

Original entry on oeis.org

1, 1, 4, 1, 13, 25, 36, 1, 38, 81, 12, 26, 124, 121, 196, 1, 103, 73, 324, 42, 224, 175, 91, 147, 232, 14, 676, 170, 303, 841, 900, 1, 264, 1089, 385, 364, 93, 301, 585, 563, 1093, 1681, 44, 355, 152, 118, 83, 484, 1254, 763, 2500, 1043, 156, 2809, 996, 564, 952, 931, 71, 387, 3325, 176, 3124, 1, 649, 4225, 554, 1081
Offset: 0

Views

Author

Keywords

Comments

This sequence gives important additional insight into the algorithm for the calculation of A002326 (see A179680 for its description). Let us estimate how many steps are required before (the first) 1 will appear. Note that all partial fractions (which are indeed, integers) are odd residues modulo 2*n+1 from the interval [1,2*n-1]. So, if there is no repetition, then the number of steps does not exceed n. Suppose then that there is a repetition before the appearance of 1. Then for an odd residue k from [1, 2*n-1], 2^m_1 == 2^m_2 == k (mod 2*n+1) such that m_2 > m_1. But then 2^(m_2-m_1) == 1 (mod 2*n+1). So, since m_2 - m_1 < m_2, it means that 1 should appear earlier than the repetition of k, which is a contradiction. So the number of steps <= n. For example, for n=9, 2*n+1 = 19, we have exactly 9 steps with all other odd residues <= 17 modulo 19 appearing before the final 1: 5, 3, 11, 15, 17, 9, 7, 13, 1.
A001122 gives the odd numbers k such that a((k-1)/2) = A000290((k-1)/2).

Examples

			Let n = 9. According to the comment, a(9) = 5 + 3 + 11 + 15 + 17 + 9 + 7 + 13 + 1 = 81.
		

Crossrefs

Cf. A000225 (gives the positions of ones), A292938 (of squares), A292939 (and the corresponding odd numbers), A292940 (odd numbers corresponding to squares larger than one), A292379 (odd numbers corresponding to squares less than n^2).

Programs

  • PARI
    A000265(n) = (n >> valuation(n, 2));
    A006519(n) = 2^valuation(n, 2);
    A292270(n) = { my(x = n+n+1, z = ((1+x)/A006519(1+x)), m = A000265(1+x)); while(m!=1, z += ((x+m)/A006519(x+m)); m = A000265(x+m)); z; };
    
  • Scheme
    (define (A292270 n) (let ((x (+ n n 1))) (let loop ((z (/ (+ 1 x) (A006519 (+ 1 x)))) (k 1)) (let ((m (A000265 (+ x k)))) (if (= 1 m) z (loop (+ z (/ (+ x m) (A006519 (+ x m)))) m))))))

Formula

For all n >= 1, A000196(a((A001122(1+n)-1)/2)) = (A001122(1+n)-1)/2, in other words, a(A163782(n)) = A000290(A163782(n)).

A292938 Numbers n for which A292270(n) is a square.

Original entry on oeis.org

0, 1, 2, 3, 5, 6, 7, 9, 13, 14, 15, 18, 26, 29, 30, 31, 33, 41, 47, 50, 53, 63, 65, 69, 74, 81, 86, 89, 90, 98, 105, 113, 127, 134, 138, 146, 152, 158, 173, 174, 186, 189, 194, 209, 210, 221, 230, 233, 245, 254, 255, 259, 261, 270, 273, 278, 281, 293, 306, 309, 326, 329, 330, 338, 350, 354, 378, 386, 393, 398, 410
Offset: 1

Views

Author

Keywords

Comments

Positions of ones in A293218.

Crossrefs

Cf. A292270, A292939 (corresponding odd numbers).
Cf. A000225 (a subsequence), A293218.

A292947 a(n) = A007947(A292270(n)).

Original entry on oeis.org

1, 1, 2, 1, 13, 5, 6, 1, 38, 3, 6, 26, 62, 11, 14, 1, 103, 73, 6, 42, 14, 35, 91, 21, 58, 14, 26, 170, 303, 29, 30, 1, 66, 33, 385, 182, 93, 301, 195, 563, 1093, 41, 22, 355, 38, 118, 83, 22, 1254, 763, 10, 1043, 78, 53, 498, 282, 238, 133, 71, 129, 665, 22, 1562, 1, 649, 65, 554, 1081, 614, 69, 1633, 85, 634, 1398, 74, 269, 626, 70, 1054, 1285, 1191, 3
Offset: 0

Views

Author

Antti Karttunen, Oct 06 2017

Keywords

Crossrefs

Cf. A000225 (gives the positions of ones).

Programs

A293219 a(n) = A000188(A292270(n)).

Original entry on oeis.org

1, 1, 2, 1, 1, 5, 6, 1, 1, 9, 2, 1, 2, 11, 14, 1, 1, 1, 18, 1, 4, 5, 1, 7, 2, 1, 26, 1, 1, 29, 30, 1, 2, 33, 1, 2, 1, 1, 3, 1, 1, 41, 2, 1, 2, 1, 1, 22, 1, 1, 50, 1, 2, 53, 2, 2, 2, 7, 1, 3, 5, 4, 2, 1, 1, 65, 1, 1, 2, 69, 1, 17, 2, 1, 74, 1, 1, 7, 2, 1, 1, 81, 1, 1, 6, 7, 86, 1, 1, 89, 90, 26, 2, 1, 1, 1, 1, 1, 98, 3, 3, 6, 2, 1, 1, 105
Offset: 0

Views

Author

Antti Karttunen, Oct 07 2017

Keywords

Crossrefs

Cf. A163782 (after a(1) = 1 gives the other positions where a(n) = n).

Programs

Formula

a(n) = A000188(A292270(n)).
Showing 1-4 of 4 results.