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

A114216 a(0)=0; thereafter a(n) = largest odd divisor of a(n-1) + prime(n).

Original entry on oeis.org

0, 1, 1, 3, 5, 1, 7, 3, 11, 17, 23, 27, 1, 21, 1, 3, 7, 33, 47, 57, 1, 37, 29, 7, 3, 25, 63, 83, 95, 51, 41, 21, 19, 39, 89, 119, 135, 73, 59, 113, 143, 161, 171, 181, 187, 3, 101, 39, 131, 179, 51, 71, 155, 99, 175, 27, 145, 207, 239, 129, 205, 61, 177, 121, 27, 85, 201, 133
Offset: 0

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

a(33899) = 123729 and the 33900th prime is 400559, hence 123729 + 400559 = 524288 = 2^19 and a(33900) = 1. Is a(33900) the last term equal to 1? No other terms with a(n) = 1 for n < 10000000.

Examples

			prime(1)=2, hence a(1) = (0 + 2)/2^1 = 1;
prime(2)=3, hence a(2) = (a(1)+3)/2^2 = 1;
prime(3)=5, hence a(3) = (a(2)+5)/2^1 = 3;
prime(4)=7, hence a(4) = (a(3)+7)/2^1 = 5, etc.
		

Crossrefs

Cf. A114217 (a(n)=1), A114221 (a(n)=3), A114222 (a(n)=7), A114223 (a(n)=11), A114224 (a(n)=17).
Cf. A114218 lists the values of k for n with a(n)=1.

Programs

  • Maple
    N:= 1000: # to get N terms
    T:= 0; A[0]:= T;
    for n from 1 to N do
       T:= T + ithprime(n);
       T:= T / 2^padic[ordp](T,2);
       A[n]:= T;
    od:
    seq(A[n],n=0..N); # Robert Israel, Jun 01 2014
  • Mathematica
    Do[{
      If[n == 1, t = 0];
      t = Prime[n] + t;
      k = IntegerExponent[t, 2];
      t = t/(Power[2, k ]);
      (* a(n)=t *)
      }, {n, 1, 1000}]
    (* Jesse Sealand, Aug 17 2019 *)

Extensions

Definition corrected and offset changed by N. J. A. Sloane, Sep 01 2019.

A114218 Values of k when A114216(n)=1.

Original entry on oeis.org

1, 2, 4, 6, 6, 7, 9, 19, 31
Offset: 1

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

The last term 19 corresponds to n=33900 in A114216: A114216(33899) = 123729 and 33900th prime is 400559, hence 123729 + 400559 = 524288 = 2^19 and A114216(33900) = 1. Cf. A114217 values of n such that A114216(n) = 1.

Crossrefs

Extensions

a(9) from Donovan Johnson, May 13 2010

A114221 Numbers m such that A114216(m)=3.

Original entry on oeis.org

3, 7, 15, 24, 45, 76, 161, 309, 456, 55621039
Offset: 1

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

a(11) (if it exists) > 37607912018. - Hiroaki Yamanouchi, Sep 24 2014

Crossrefs

Numbers m such that A114216(m)=k: A114217 (k=1), A114222 (k=7), A114223 (k=11), A114224 (k=17).

Extensions

a(10) from Hiroaki Yamanouchi, Sep 24 2014

A114222 Numbers m such that A114216(m) = 7.

Original entry on oeis.org

6, 16, 23, 80, 9610965
Offset: 1

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

a(6) (if it exists) > 37607912018. - Hiroaki Yamanouchi, Sep 24 2014

Crossrefs

Numbers m such that A114216(m)=k: A114217 (k=1), A114221 (k=3), A114223 (k=11), A114224 (k=17).

Extensions

a(5) from Hiroaki Yamanouchi, Sep 24 2014

A114223 Numbers m such that A114216(m) = 11.

Original entry on oeis.org

8, 158, 959, 1523, 2155
Offset: 1

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

a(6) (if it exists) > 37607912018. - Hiroaki Yamanouchi, Sep 24 2014

Crossrefs

Numbers m such that A114216(m)=k: A114217 (k=1), A114221 (k=3), A114222 (k=7), A114224 (k=17).

A114224 Numbers m such that A114216(m) = 17.

Original entry on oeis.org

9, 1897, 62815, 192282, 21138551
Offset: 1

Views

Author

Zak Seidov, Nov 18 2005

Keywords

Comments

a(6) (if it exists) > 37607912018. - Hiroaki Yamanouchi, Sep 24 2014

Crossrefs

Numbers m such that A114216(m)=k: A114217 (k=1), A114221 (k=3), A114222 (k=7), A114223 (k=11).

Extensions

a(4)-a(5) from Hiroaki Yamanouchi, Sep 24 2014
Showing 1-6 of 6 results.