Statistics
1 Question
0 Answers
RANK
237,638
of 301,432
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 21,280
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 174,555
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
Check which numbers are a triangle, pentagonal, and hexagonal with these given formulas. T(i) = i(i+1)/2. H(i) = i(3*i-1)/2. P(i) = i(2*i-1). For the first 3 numbers (including 1) that are triangular, pentagonal and hexagonal, all at the same time
Here is my code so far: clc;clear; for i = 1:2 T(i) = i*(i+2)/2; for j = 1:2 P(j) = j*(3*j-2)/2...
9 years ago | 2 answers | 0