Total sum of all cards =1+2+⋯+n=2n(n+1)
Removed cards =k and k+1
Remaining sum =1224
⇒2n(n+1)−(2k+1)=1224
To find: k−20
1. Sn=2n(n+1)
2. Sn−(2k+1)=1224
3. find n⇒k⇒k−20
k≥1⇒2k+1≥3
Sn=1224+(2k+1)≥1227
S48=248×49=1176
S49=249×50=1225
1225<1227⇒not possible
S50=250×51=1275
S51=251×52=1326
S51−1224=102 (even)⇒no integer k
2k+1=1275−1224=51
2k=50
k=25
k+1=26≤50 ✓
1275−(25+26)=1224 ✓
k−20=25−20=5