HP Forums

Full Version: (49G) Gould's Sequence OEIS A001316
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Gould's sequence


counts the number of odd terms in the rows of Pascal's triangle.

For integer input the programme returns the number of odd occurences in that line of Pascal's triangle, starting with line zero.


  # FF
    FPTR2 ^DupQIsZero?
    FPTR2 ^Z>ZH
    FPTR2 ^ZBits
    FPTR2 ^ZBit?
    FPTR2 ^RP#
Reference URL's