Difference between revisions of "2002 PMWC Problems"
(→Problem T10) |
(→Problem I13) |
||
Line 48: | Line 48: | ||
== Problem I13 == | == Problem I13 == | ||
+ | |||
+ | <asy> | ||
+ | size(8cm); | ||
+ | int[][] triangle; | ||
+ | int nrows=5; | ||
+ | int count = 1; | ||
+ | for(int i = 0; i < nrows; ++i) | ||
+ | { | ||
+ | int[] temp; | ||
+ | for(int j = 0; j <= i; ++j) | ||
+ | { | ||
+ | temp.push(count); | ||
+ | count+=2; | ||
+ | } | ||
+ | triangle.push(temp); | ||
+ | } | ||
+ | for(int i = 0; i < nrows; ++i) | ||
+ | { | ||
+ | for(int j = 0; j <= i; ++j) | ||
+ | { | ||
+ | label( string(triangle[i][j]), (-i/2+j,-i*sqrt(3)/2) ); | ||
+ | } | ||
+ | } | ||
+ | real correction=.175; | ||
+ | string[] ord = {"st", "nd", "rd"}; | ||
+ | while(ord.length < nrows) | ||
+ | { | ||
+ | ord.push("th"); | ||
+ | } | ||
+ | for(int i = 1; i <= nrows; ++i) | ||
+ | { | ||
+ | label("$" + string(i) + "^\textrm{" + ord[i-1] + "}$ Row:", (-5,(-i+1)*sqrt(3)/2+correction)); | ||
+ | } | ||
+ | int orows=3; | ||
+ | real cradius=.07; | ||
+ | for(int i = nrows; i < orows + nrows; ++i) | ||
+ | { | ||
+ | for(int j = 0; j <= i; ++j) | ||
+ | { | ||
+ | fill( circle((-i/2+j,-i*sqrt(3)/2), cradius) ); | ||
+ | } | ||
+ | } | ||
+ | //Credit to dasobson for the diagram</asy> | ||
<asy> | <asy> |
Revision as of 12:55, 20 April 2014
Contents
- 1 Problem I1
- 2 Problem I2
- 3 Problem I3
- 4 Problem I4
- 5 Problem I5
- 6 Problem I6
- 7 Problem I7
- 8 Problem I8
- 9 Problem I9
- 10 Problem I10
- 11 Problem I11
- 12 Problem I12
- 13 Problem I13
- 14 Problem I14
- 15 Problem I15
- 16 Problem T1
- 17 Problem T2
- 18 Problem T3
- 19 Problem T4
- 20 Problem T5
- 21 Problem T6
- 22 Problem T7
- 23 Problem T8
- 24 Problem T9
- 25 Problem T10
Problem I1
Problem I2
Problem I3
Problem I4
Problem I5
Problem I6
Problem I7
Problem I8
Problem I9
Problem I10
Problem I11
Problem I12
Problem I13