Type an integer number in the text box and press the button to generate the odd row for that index.
Given a triangle of consecutive odd numbers:
1
3 5
7 9 11
13 15 17 19
21 23 25 27 29
....
The algorithm will generate and disply the triangle's respective row when given an integer index by the user (the rows are 1-indexed), e.g.:
oddRow(1) == [1]
oddRow(2) == [3, 5]
oddRow(3) == [7, 9, 11]
coder: Vorsk Raknar
date : 2021-03-11