ProjectEuler 456 Triangles containing the ori - 拼圖
By Zanna
at 2014-02-25T07:16
at 2014-02-25T07:16
Table of Contents
456. Triangles containing the origin II
http://projecteuler.net/problem=456
定義:
x_n = (1248^n mod 32323) - 16161
y_n = (8421^n mod 30103) - 15051
P_n = {(x_1, y_1), (x_2, y_2), ..., (x_n, y_n)}
例如,P_8 = {(-14913, -6630), (-10161, 5625), (5226, 11896), (8340, -10778),
(15852, -5203), (-15165, 11295), (-1427, -14495), (12407, 1060)}。
令C(n)為三頂點都在P_n上且包含原點在其內部的三角形的個數。
例如:
C(8) = 20
C(600) = 8950634
C(40000) = 2666610948988
請求出C(2000000)。
--
http://projecteuler.net/problem=456
定義:
x_n = (1248^n mod 32323) - 16161
y_n = (8421^n mod 30103) - 15051
P_n = {(x_1, y_1), (x_2, y_2), ..., (x_n, y_n)}
例如,P_8 = {(-14913, -6630), (-10161, 5625), (5226, 11896), (8340, -10778),
(15852, -5203), (-15165, 11295), (-1427, -14495), (12407, 1060)}。
令C(n)為三頂點都在P_n上且包含原點在其內部的三角形的個數。
例如:
C(8) = 20
C(600) = 8950634
C(40000) = 2666610948988
請求出C(2000000)。
--
Tags:
拼圖
All Comments
Related Posts
ProjectEuler 455 Powers With Trailing Digits
By Iris
at 2014-02-25T07:11
at 2014-02-25T07:11
數學問題...三球交會....
By Franklin
at 2014-02-24T21:09
at 2014-02-24T21:09
請問這賣家賣的拼圖是正版的嗎?
By Regina
at 2014-02-23T00:39
at 2014-02-23T00:39
台茂拼圖大賽part 16
By Valerie
at 2014-02-18T17:57
at 2014-02-18T17:57
請大家幫忙,一個英文的字首謎題
By Linda
at 2014-02-18T15:58
at 2014-02-18T15:58