Wikipedia:Reference desk/Archives/Mathematics/2023 November 30

Mathematics desk
< November 29 << Oct | November | Dec >> Current desk >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


November 30

edit

Binomial and Prime

edit

Let n be a positive integer, and p be a prime number such that n! is divisible by p2022, but not p2023. Define m as the number of terms in the expansion of (1+x)n that are divisible by p. (This is not my HW question so don't tag that, but I just want to know if the data is sufficient and if answer is m=2022 or 2023). ExclusiveEditor Notify Me! 19:21, 30 November 2023 (UTC)[reply]

Let e=2022. Take p>e so n can be any number between ep and ep+p-1. By terms in the expansion of (1+x)n I assume you mean binomial coefficients choose(n, i). If n=ep+k where 0≤k<p then (assuming my calculations are correct) number of i for which choose(n, i) is divisible by p is e(p-k-1). So there is not enough information given and the m would only be e if k=p-2. --RDBury (talk) 02:36, 1 December 2023 (UTC)[reply]
PS. In general, if p is prime and the base p representation of n is (dkdk-1...d1d0)p, then the number of nonzero binomial coefficients choose(n, i) which are not divisible by p is (dk+1)(dk-1+1)...(d1+1)(d0+1). --RDBury (talk) 10:37, 1 December 2023 (UTC)[reply]
That's an extraordinarily interesting relation. Working with Legendre's formula, one gets that   if and only if  . I was stuck on obtaining the number of   satisfying this, but upon reviewing the relation you have established it becomes clear once you realize that in order for this relation to hold, all the digits   of   in base   must be at most equal to the corresponding digit  . So   if and only if each digit of   is less than or equal to each digit of   in base  , and from the number of choices for each   being   one obtains the formula you found of  . GalacticShoe (talk) 14:22, 1 December 2023 (UTC)[reply]
Yes, and you can say more. I assume this is well known though I don't know if it has a name, but if the base p expansion of n is (dkdk-1...d1d0)p and the base p expansion of i is (akak-1...a1a0)p, where padding with 0's is used if necessary, then:
 
Here the binomial coefficient is taken to be 0 if the "numerator" is less than the "denominator". If you consider Sn acting on the subsets of order i in {0, 1, ..., n-1}, then the lhs is the total number of elements and the rhs is the number of fixed points of a Sylow p-subgroup of Sn. The article Sierpiński triangle is relevant here, specifically the sections on Pascal's triangle and Generalization to other moduli. --RDBury (talk) 17:05, 1 December 2023 (UTC)[reply]
I looked it up and Wikipedia apparently has it under Lucas's theorem, named after Édouard Lucas of Lucas number fame. GalacticShoe (talk) 06:58, 5 December 2023 (UTC)[reply]
Moreover, Kummer's theorem is the theorem that the largest integer  , such that   divides the binomial coefficient  , is equal to the number of carries that occur when   is added to   in base  . This theorem implies that   does not divide   if and only if there are zero carries, and of course this corresponds to the expression involving floors in my original reply. GalacticShoe (talk) 07:10, 5 December 2023 (UTC)[reply]