Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.628 kb
823ffc6 @retzkek added python solution to problem 42
authored
1 Problem 42
2 ==========
3
4 The nth term of the sequence of triangle numbers is given by,
5 tn = ½n(n+1); so the first ten triangle numbers are:
6
7 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
8
9 By converting each letter in a word to a number corresponding to its
10 alphabetical position and adding these values we form a word value. For
11 example, the word value for SKY is 19 + 11 + 25 = 55 = t10. If the word
12 value is a triangle number then we shall call the word a triangle word.
13
14 Using words.txt (right click and 'Save Link/Target As...'), a 16K text
15 file containing nearly two-thousand common English words, how many are
16 triangle words?
Something went wrong with that request. Please try again.