login
Cards left over after dealing evenly to n people.
1

%I #7 Jul 30 2017 15:55:57

%S 0,0,1,0,2,4,3,4,7,2,8,4,0,10,7,4,1,16,14,12,10,8,6,4,2,0,25,24,23,22,

%T 21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,52,52,52,52,

%U 52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52

%N Cards left over after dealing evenly to n people.

%F a(n) = mod(52, n)

%F a(n) = 52 - n*A033372(n). - _Rick L. Shepherd_, Jun 17 2005

%t Mod[52,Range[80]] (* _Harvey P. Dale_, Jul 30 2017 *)

%o (PARI) a(n) = 52%n

%Y Cf. A033372 (floor(52/n): cards each of the n people receive).

%K nonn,easy

%O 1,5

%A Joe Keane (jgk(AT)jgk.org)