A381128 The number of card moves required to deal n cards using Down-SpellUnder dealing.
1, 5, 9, 15, 20, 25, 29, 35, 41, 46, 50, 57, 64, 73, 82, 90, 98, 108, 117, 126, 133, 143, 153, 165, 176, 187, 197, 209, 221, 232, 239, 249, 259, 271, 282, 293, 303, 315, 327, 338, 344, 353, 362, 373, 383, 393, 402, 413, 424, 434, 440, 449, 458, 469, 479, 489, 498, 509, 520, 530, 536, 545, 554, 565, 575, 585, 594, 605
Offset: 1
Examples
The dealing pattern to deal four cards is DUUUDUUUDUUUUUD. It contains 15 letters, so a(4) = 15.
Crossrefs
Programs
-
Python
from num2words import num2words as n2w def spell(n): return sum(1 for c in n2w(n).replace(" and", "").replace(" ", "").replace(",", "").replace("-", "")) moves_so_far = 0 l = [] for i in range(1, 41): moves_so_far += 1 l += [str(moves_so_far)] moves_so_far += spell(i) print(", ".join(l))
Formula
a(n) = A067278(n-1) + n.
Comments