Number of ways to write n as the sum of any number of consecutive integers (including the trivial one-term sum n = n).

A054844

Number of ways to write n as the sum of any number of consecutive integers (including the trivial one-term sum n = n).

Terms

    a(0) =2a(1) =2a(2) =4a(3) =2a(4) =4a(5) =4a(6) =4a(7) =2a(8) =6a(9) =4a(10) =4a(11) =4a(12) =4a(13) =4a(14) =8a(15) =2a(16) =4a(17) =6a(18) =4a(19) =4a(20) =8a(21) =4a(22) =4a(23) =4a(24) =6a(25) =4a(26) =8a(27) =4a(28) =4a(29) =8

External references