login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Binomial(n+p, n) mod n where p=5.
36

%I #23 Apr 30 2023 13:14:25

%S 0,1,2,2,2,0,1,7,4,3,1,8,1,8,9,13,1,7,1,10,8,12,1,3,6,1,10,8,1,2,1,25,

%T 12,1,8,22,1,20,14,39,1,15,1,12,25,24,1,5,1,11,18,14,1,46,12,43,20,1,

%U 1,48,1,32,22,49,14,23,1,18,24,50,1,7,1,1,41,20,1,66,1,77,28,1,1,50,18,44

%N Binomial(n+p, n) mod n where p=5.

%C Let d(m)...d(2)d(1)d(0) be the base-n representation of n+p. The relation a(n)=d(1) holds, if n is a prime index. For this reason there are infinitely many terms which are equal to 1.

%H Ray Chandler, <a href="/A133625/b133625.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_240">Index entries for linear recurrences with constant coefficients</a>, order 240.

%F a(n)=binomial(n+5,5) mod n.

%F a(n)=1 if n is a prime > 5, since binomial(n+5,n)==(1+floor(5/n))(mod n), provided n is a prime.

%F From _Chai Wah Wu_, May 26 2016: (Start)

%F a(n) = (n^5 + 15*n^4 + 85*n^3 + 105*n^2 + 34*n + 120)/120 mod n.

%F For n > 6:

%F if n mod 120 == 0, then a(n) = 17*n/60 + 1.

%F if n mod 120 is in {1, 2, 7, 11, 13, 17, 19, 23, 26, 29, 31, 34, 37, 41, 43, 47, 49, 53, 58, 59, 61, 67, 71, 73, 74, 77, 79, 82, 83, 89, 91, 97, 98, 101, 103, 106, 107, 109, 113, 119}, then a(n) = 1.

%F if n mod 120 is in {3, 9, 18, 21, 27, 33, 39, 42, 51, 57, 63, 66, 69, 81, 87, 93, 99, 111, 114, 117}, then a(n) = n/3 + 1.

%F if n mod 120 is in {4, 28, 44, 52, 68, 76, 92, 116}, then a(n) = n/4 + 1.

%F if n mod 120 is in {5, 10, 25, 35, 50, 55, 65, 85, 95, 115}, then a(n) = n/5 + 1.

%F if n mod 120 is in {6, 54, 78, 102}, then a(n) = 5*n/6 + 1.

%F if n mod 120 is in {8, 16, 32, 56, 64, 88, 104, 112}, then a(n) = 3*n/4 + 1.

%F if n mod 120 is in {12, 36, 84, 108}, then a(n) = 7*n/12 + 1.

%F if n mod 120 is in {14, 22, 38, 46, 62, 86, 94, 118}, then a(n) = n/2 + 1.

%F if n mod 120 is in {15, 45, 75, 90, 105}, then a(n) = 8*n/15 + 1.

%F if n mod 120 is in {20, 100}, then a(n) = 9*n/20 + 1.

%F if n mod 120 is in {24, 48, 72, 96}, then a(n) = n/12 + 1.

%F if n mod 120 == 30, then a(n) = n/30 + 1.

%F if n mod 120 is in {40, 80}, then a(n) = 19*n/20 + 1.

%F if n mod 120 == 60, then a(n) = 47*n/60 + 1.

%F if n mod 120 is in {70, 110}, then a(n) = 7*n/10 + 1.

%F (End)

%F For n > 246, a(n) = 2*a(n-120) - a(n-240). - _Ray Chandler_, Apr 23 2023

%t Table[Mod[Binomial[n+5,n],n],{n,90}] (* _Harvey P. Dale_, Oct 02 2015 *)

%Y Cf. A000040, A133620-A133625, A133630, A038509, A133634-A133636.

%Y Cf. A133875, A133885, A133880, A133890, A133900, A133910, A362686, A362687, A362688, A362689.

%K nonn

%O 1,3

%A _Hieronymus Fischer_, Sep 30 2007

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy