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.

A232562 Inverse permutation of the sequence of positive integers at A232561.

This page as a plain text file.
%I A232562 #4 Nov 27 2013 13:29:35
%S A232562 1,2,3,5,9,4,7,13,6,11,20,10,18,33,17,31,57,8,15,27,14,25,46,24,44,81,
%T A232562 12,22,40,21,38,70,37,68,125,19,35,64,34,62,114,61,112,206,32,59,108,
%U A232562 58,106,195,105,193,355,16,29,53,28,51,94,50,92,169,26,48
%N A232562 Inverse permutation of the sequence of positive integers at A232561.
%H A232562 Clark Kimberling, <a href="/A232562/b232562.txt">Table of n, a(n) for n = 1..1000</a>
%t A232562 z = 8; g[1] = {1}; g[2] = {2, 3}; g[n_] := Riffle[g[n - 1] + 1, 3 g[n - 1]]; j[2] = Join[g[1], g[2]]; j[n_] := Join[j[n - 1], g[n]]; g1[n_] := DeleteDuplicates[DeleteCases[g[n], Alternatives @@ j[n - 1]]]; g1[1] = g[1]; g1[2] = g[2]; t = Flatten[Table[g1[n], {n, 1, z}]]  (* A232561 *)
%t A232562 Table[Length[g1[n]], {n, 1, z}]  (* A001590 *)
%t A232562 t1 = Flatten[Table[Position[t, n], {n, 1, 200}]]  (* A232562 *)
%Y A232562 Cf. A232559, A232561, A001590.
%K A232562 nonn,easy
%O A232562 1,2
%A A232562 _Clark Kimberling_, Nov 26 2013