915. Giant GCDs

The function s(n) is defined recursively for positive integers by s(1)=1 and s(n+1)=(s(n)−1)3+2 for n≥1.
The sequence begins: s(1)=1,s(2)=2,s(3)=3,s(4)=10,….

For positive integers N, define

T(N)=∑a=1N∑b=1Ngcd(s(s(a)),s(s(b))).

You are given T(3)=12, T(4)≡24881925 and T(100)≡14416749 both modulo 123456789.

Find T(108). Give your answer modulo 123456789.

915. 巨大的最大公约数

在正整数上递归定义函数 s(n) 如下:s(1)=1,且对诸 n≥1 有 s(n+1)=(s(n)−1)3+2。{s(n)} 的前几项是:s(1)=1,s(2)=2,s(3)=3,s(4)=10,…。

对正整数 N,定义:

T(N)=∑a=1N∑b=1Ngcd(s(s(a)),s(s(b))).

已知 T(3)=12、T(4)≡24881925(mod123456789)、T(100)≡14416749(mod123456789)。

求 T(108) 模 123456789 的值。


点 这个链接 回到源站。

点 这个链接 回到详细版题目目录。