Results 1 to 3 of 3

Thread: Triangular Number Sequence

  1. #1
    New Member
    Join Date
    Jan 2019
    HSC
    2019
    Gender
    Undisclosed
    Posts
    16
    Rep Power
    1

    Triangular Number Sequence

    .
    Last edited by nakappe; 5 Feb 2019 at 4:12 PM.

  2. #2
    617 pages fan96's Avatar
    Join Date
    May 2017
    HSC
    2018
    Gender
    Male
    Location
    NSW
    Posts
    440
    Rep Power
    2

    Re: Triangular Number Sequence

    Quote Originally Posted by nakappe View Post
    By adding another row of dots and counting all the dots we can find the next number of the sequence.
    i.e. "count all the rows before, and add a new row".

    The algorithm could look like:

    Code:
    BEGIN
        total = 0
        FOR row = 1 TO 10 STEP 1
            total = total + row
            Display total
        NEXT i
    END
    Specifically, look at this line:
    Code:
     total = total + row
    In total + row, total represents the sum of all the rows before, and row is the next row to be added.
    HSC 2018: English Adv. [80] • Maths Ext. 1 [98] • Maths Ext. 2 [95] • Chemistry [87] • Software Design [95]

    ATAR: 97.40 | Uni Course: Advanced Mathematics (Hons) / Engineering (Hons) at UNSW

  3. #3
    New Member
    Join Date
    Jan 2019
    HSC
    2019
    Gender
    Undisclosed
    Posts
    16
    Rep Power
    1

    Re: Triangular Number Sequence

    Thank you so much!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •