Assignment for fibonacci and triangular numbers