Project Euler #162: Hexadecimal numbers

  • + 1 comment

    I've come to this values for the first 10 N:

    [3] 4
    [4] 24
    [5] 100
    [6] 360
    [7] 1204
    [8] 3864
    [9] 12100
    [10] 37320
    

    For instance, the combinations for N=4 that I'm assuming are:

    [1, 0, A, A]
    [1, A, 0, A]
    [1, A, A, 0]
    [A, 1, 0, A]
    [A, 1, A, 0]
    [A, 0, 1, A]
    [A, 0, A, 1]
    [A, A, 0, 1]
    [A, A, 1, 0]
    [1, 0, 1, A]
    [1, 0, A, 1]
    [1, 1, 0, A]
    [1, 1, A, 0]
    [1, A, 1, 0]
    [1, A, 0, 1]
    [A, 1, 1, 0]
    [A, 1, 0, 1]
    [A, 0, 1, 1]
    [1, 0, 0, A]
    [1, 0, A, 0]
    [1, A, 0, 0]
    [A, 0, 1, 0]
    [A, 0, 0, 1]
    [A, 1, 0, 0]
    

    For this test case(N=4), am I missing something ?