A088507 Duplicate of A050001.
1, 5, 2, 4, 19, 6, 16, 26, 3, 18, 23, 28, 10, 15, 20, 25, 61, 7, 12, 35, 17, 22, 76, 27, 45
Offset: 1
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.
a050000 n = a050000_list !! (n-1) a050000_list = 1 : f [1,0] where f xs'@(x:xs) | x `div` 2 `elem` xs = 3 * x : f (3 * x : xs') | otherwise = x `div` 2 : f (x `div` 2 : xs') -- Reinhard Zumkeller, Nov 13 2011
a[0] = 0; a[1] = 1; a[n_] := a[n] = (b = Floor[a[n-1]/2]; If[FreeQ[Table[ a[k], {k, 0, n-2}], b], b, 3*a[n-1]]); Array[a, 60] (* Jean-François Alcover, Jul 13 2016 *)
Comments