Define the sequence $a_1,a_2,\cdots$ by $2^n = \sum_{d | n} a_d.$ Show $a_n$ is divisible by n for every $n\ge 1$.
A solution I found online defined the following sequence $b_n$ as follows. Let $b_n$ be the number of sequences of length n made up of $0$s and $1$s that can't be divided into more than one identical block (i.e. it can't be written as the concatenation of more than one identical block).
Why does $b_n$ satisfy the same recurrence relation as $a_n$? Computing the first few values of $a_n$ gives $a_1=2,a_2=2,a_3=6$. Also, $b_1 = 2, b_2 = 2, b_3 = 6.$
Also the solution claimed that $b_n$ is divisible by $n$ because the non-repeating sequences of length n can be divided into groups of n, where the sequences are obtained from each other by cyclic shifts.
To justify this, I suppose the standard approach is to define an equivalence relation on the non-repeating sequences of length n by stating that one sequence is equivalent to another iff they are cyclic shifts of each other. Clearly this is an equivalence relation, and it is known that equivalence relations are disjoint. Thus the only issue is proving that each equivalence class has n elements. To justify this, one approach might be to show that if two distinct cyclic shifts equal each other, then the sequence must have an identical block. So let $B_1\cdots B_n$ and $B_1'\cdots B_n'$ be cyclic shifts of each other so that for all i, $B_i' = B_{i+k}$ for some $k < n$, where indices are taken modulo $n$. We have $B_i = B_{i+k}$ for all k, but I'm not sure how to show there must be at least two identical blocks.