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.

A105348 An indicator sequence for the Jacobsthal numbers.

Original entry on oeis.org

1, 2, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0
Offset: 0

Views

Author

Paul Barry, Apr 01 2005

Keywords

Comments

a(n) is the number of solutions to the Diophantine equation 2*x^2 - (9*n+1)*x + 9*n^2 = 1 where valid solutions are restricted to powers of 4. - Hieronymus Fischer, May 17 2007

Examples

			a(1)=2 since J(1)=J(2)=1.
		

Crossrefs

For partial sums see A130253. Cf. A130249, A130250, A147612.

Programs

Formula

G.f.: Sum_{k>=0} x^A001045(k).
a(n) = 1 + floor(log_2(3n+1)) - ceiling(log_2(3n-1)) = floor(log_2(3n+1)) - floor(log_2(3n-2)) for n >= 1. Also true: a(n) = 1 + A130249(n) - A130250(n) = A130253(n) - A130250(n) = A130250(n+1) - A130250(n) for n >= 0. - Hieronymus Fischer, May 17 2007