Ways to represent n as sum of 1s and 2s
Filed under Bloomberg
The question
Calculate the number of ways an integer n can be represented as a sum of 1s and 2s, where the order of elements matters.
No write-up yet. Related questions below have one.
Related Bloomberg questions
Collected from public candidate posts and coding forums. Updated Nov 2026.