Controlling LEDs.....and my destiny....

No, you should start at 23. The 24th element is element 23. The first element is 0.