Divisible by 2 but Not 4

Problem

Let an=1+2+⋯+na_n = 1 + 2 + \cdots + n and Sm=a1+a2+⋯+amS_m = a_1 + a_2 + \cdots + a_m. Among S1,S2,…,S2017S_1, S_2, \dots, S_{2017}, how many are divisible by 22 but not by 44?

Answer

Solution

Difficulty7/10
Topicsnumber theory, Modular Arithmetic, sequences, Telescoping

Whiteboard

Your sketch is saved only in this browser. To share it, export your drawing as an image (whiteboard menu → Export as → PNG), then upload that image in the comments below.

Discussion

Ask questions, share alternate solutions, and use LaTeX freely.

0 comments
Log in to join the discussion.

No comments yet.