All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Rods as triangle sides (Posted on 2019-07-28) Difficulty: 3 of 5
You are given n>3 rods whose lengths are 1,2,3,.... How many non-congruent triangles can be made using these rods as sides?

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution No Subject Comment 1 of 1
This replaces an erroneously programmed version

n number of triangles
4 1
5 3
6 7
7 13
8 22
9 34
10 50
11 70
12 95
13 125
14 161
15 203
16 252
17 308
18 372
19 444
20 525

 For n = 4 To 20
  ct = 0
  For a = 2 To n - 2
    For b = a + 1 To n - 1
      For c = b + 1 To n
       If c < a + b Then
         ct = ct + 1
       End If
       DoEvents
      Next
    Next
  Next
  Text1.Text = Text1.Text & n & Str(ct) & crlf
 Next

This is the OEIS's A002623

Edited on July 28, 2019, 3:41 pm
  Posted by Charlie on 2019-07-28 14:41:04

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information