%I #21 Aug 11 2022 14:48:14
%S 1,2,3,6,9,16,23,27,30,33,38,53,84,91,115,124,134,157,178,222,241,267,
%T 277,298,323,368,378,407,438,450,495,496,542,546,555,561,576,581,598,
%U 619,646,665,703,750,774,782,806,860,862,864,905,909,937,976,1005,1052,1056,1121,1152,1197,1241,1269,1316
%N Order in which record high new cards appear for first time on top of deck in Guy's shuffling problem A035485.
%D D. Gale, Mathematical Entertainments: "Careful Card-Shuffling and Cutting Can Create Chaos," Mathematical Intelligencer, vol. 14, no. 1, 1992, pages 54-56.
%D D. Gale, Tracking the Automatic Ant and Other Mathematical Explorations, A Collection of Mathematical Entertainments Columns from The Mathematical Intelligencer, Springer, 1998.
%H Lars Blomberg, <a href="/A035494/b035494.txt">Table of n, a(n) for n = 1..3633</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PerfectShuffle.html">Perfect shuffle.</a>
%F Monotonic subsequence of A035493.
%o (Python)
%o from itertools import count, islice
%o def agen(): # generator of terms
%o deck = []; record = 1; yield 1
%o for n in count(1):
%o deck += [2*n-1, 2*n]
%o first, next = deck[:n], deck[n:2*n]
%o deck[0:2*n:2], deck[1:2*n:2] = next, first
%o if deck[0] > record: record = deck[0]; yield record
%o print(list(islice(agen(), 63))) # _Michael S. Branicky_, Aug 11 2022
%Y Cf. A035485, A035490, A035491, A035492, A035493, A035500, A035501.
%K nonn
%O 1,2
%A _N. J. A. Sloane_, _Wouter Meeussen_
%E More terms from _Jud McCranie_