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.

A111620 a(n) = 2*A111619/n.

This page as a plain text file.
%I A111620 #3 Mar 30 2012 17:31:16
%S A111620 1,1,1,1,2,1,2,1,1,1,1,1,2,1,2,1,1,1,2,1,2,1,2,2,2,2,1,2,1,1,1,1,2,1,
%T A111620 2,2,2,2,2,1,2,2,2,2,2,2,2,1,1,2,1,2,2,2,2,2,2,1,2,2,2,2,2,1,1,1,2,1,
%U A111620 1,1,2,1
%N A111620 a(n) = 2*A111619/n.
%C A111620 A sequence of just 1's and 2's.
%C A111620 2n divided A111619 is: 2,2,2,2,1,2,1,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,1,1,1,1,2,1,2,2,2,2,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,1,2,1,1,1,1,1,1,2,1,1,1,1,1,2,2,2,1,2,2,2,1,2,..., Table[ n/g[n, n - 1], {n, 2, 144, 2}].
%C A111620 A111620(n) plus the n-th entry immediately above = 3.
%t A111620 f[n_] := f[n] = Block[{a}, a[0] = 1; a[l_] := a[l] = Block[{k = 1, s = Sum[ a[i]*x^i, {i, 0, l - 1}]}, While[ IntegerQ[ Last[ CoefficientList[ Series[(s + k*x^l)^(1/n), {x, 0, l}], x]]] != True, k++ ]; k]; Table[ a[j], {j, 0, 144}]]; g[n_, m_] := f[n][[m]]; Table[ 3 - n/g[n, n - 1], {n, 2, 144, 2}] (* or *) Table[ 2*g[n, n - 1]/n, {n, 2, 144, 2}]
%Y A111620 Cf. A111618.
%K A111620 nonn
%O A111620 1,5
%A A111620 _Robert G. Wilson v_, Aug 03 2005