728x90
Even Fibonacci numbers
Problem 2
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
400만까지의 범위에서 짝수인 피보나치 수의 합을 구하기
728x90
'공부 > 문제풀기' 카테고리의 다른 글
프로젝트 오일러 문제 6 (0) | 2018.11.11 |
---|---|
프로젝트 오일러 문제 5 (0) | 2018.11.11 |
프로젝트 오일러 문제 4 (0) | 2018.11.07 |
프로젝트 오일러 문제 3 (0) | 2018.11.04 |
프로젝트 오일러 문제 1 (0) | 2018.11.04 |