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.

A256964 Solution to Popular Computing Problem 196.

This page as a plain text file.
%I A256964 #16 Nov 19 2023 13:01:45
%S A256964 6,8,10,9,14,12,4,15,22,5,26,21,18,32,34,7,38,40,24,33,46,27,50,39,30,
%T A256964 56,58,11,62,48,36,51,70,13,74,57,42,60,82,45,86,88,16,69,94,17,98,75,
%U A256964 54,104,106,19,110,84,20,87,118,63,122,93,66,128,130,23,134
%N A256964 Solution to Popular Computing Problem 196.
%C A256964 See link for statement of the problem.
%H A256964 Alois P. Heinz, <a href="/A256964/b256964.txt">Table of n, a(n) for n = 1..10000</a>
%H A256964 Popular Computing (Calabasas, CA), <a href="/A249990/a249990.png">Problems 195 and 196</a>, Vol. 5 (No. 55, 1977), annotated and scanned copy of page PC55-4. See Problem 196.
%t A256964 A256964 = {}; nlist = Range[3, 2 10^4 + 10]; Do[x = nlist[[i]]; AppendTo[ A256964, nlist[[x+i]]]; nlist[[x+i]] = x, {i, 10^4}]; A256964 (* _Jean-François Alcover_, May 31 2019, after _Chai Wah Wu_ *)
%o A256964 (Python)
%o A256964 A256964_list, nlist = [], list(range(3,2*10**4+10))
%o A256964 for i in range(10**4):
%o A256964     x = nlist[i]
%o A256964     A256964_list.append(nlist[x+i])
%o A256964     nlist[x+i] = x # _Chai Wah Wu_, Apr 16 2015
%Y A256964 Cf. A249990.
%K A256964 nonn
%O A256964 1,1
%A A256964 _N. J. A. Sloane_, Apr 16 2015