A248624 Hiccup sequence.
4, 5, 4, 6, 4, 5, 7, 11, 10, 5, 6, 8, 10, 14, 11, 21, 14, 6, 7, 9, 21, 13, 15, 23, 14, 5, 20, 33, 41, 17, 7, 8, 10, 20, 35, 14, 14, 23, 16, 33, 31, 51, 20, 33, 13, 32, 50, 45, 53, 24, 44, 8, 9, 11, 17, 33, 35, 12, 4, 35, 40, 17, 47, 48, 31, 14, 25, 20, 40, 27
Offset: 2
Keywords
Links
- Lars Blomberg, Table of n, a(n) for n = 2..10000
Programs
-
Lua
for i = 2, 100 do local a = {i} for j = 1, 20 do local k if j <3 then k = j-1 else k = a[#a] + a[#a-1] end if k >= i then a[#a+1] = 1 k = k - i end a[#a+1] = k end print(table.concat(a, ", ")) end
Extensions
Corrected a(9) and added a(13)-a(71) by Lars Blomberg, Oct 18 2014
Comments