cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-20 of 46 results. Next

A133634 Nonprime numbers k such that binomial(k+p,k) mod k = 1, where p=4.

Original entry on oeis.org

10, 25, 26, 34, 35, 49, 50, 55, 58, 65, 74, 77, 82, 85, 91, 95, 98, 106, 115, 119, 121, 122, 125, 130, 133, 143, 145, 146, 154, 155, 161, 169, 170, 175, 178, 185, 187, 194, 202, 203, 205, 209, 215, 217, 218, 221, 226, 235, 242, 245, 247, 250, 253, 259, 265, 266
Offset: 1

Views

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Range[300],!PrimeQ[#]&&Mod[Binomial[#+4,#],#]==1&] (* Harvey P. Dale, Oct 09 2011 *)

A133636 Nonprime numbers k such that binomial(k+p,k) mod k = 1, where p=6.

Original entry on oeis.org

9, 27, 49, 63, 77, 81, 91, 99, 117, 119, 121, 133, 143, 153, 161, 169, 171, 187, 189, 203, 207, 209, 217, 221, 243, 247, 253, 259, 261, 279, 287, 289, 297, 299, 301, 319, 323, 329, 333, 341, 343, 351, 361, 369, 371, 377, 387, 391, 403, 407, 413, 423, 427, 437
Offset: 1

Views

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Comments

Also composite n such that binomial(7*n,7)== n (mod n^2). - Gary Detlefs, Sep 24 2013

Crossrefs

Programs

  • Mathematica
    Select[Range[500],CompositeQ[#]&&Mod[Binomial[#+6,#],#]==1&] (* Harvey P. Dale, Jan 30 2025 *)
  • PARI
    isok(n) = ! isprime(n) && ((binomial(n+6, n) % n) == 1); \\ Michel Marcus, Sep 25 2013
    
  • PARI
    isok(n) = ! isprime(n) && ((binomial(7*n, 7) % n^2) == n); \\ Michel Marcus, Sep 25 2013

A133621 Numbers k such that binomial(k+p,k) mod k = 1, where p=10.

Original entry on oeis.org

3, 4, 11, 13, 17, 19, 23, 29, 31, 33, 37, 41, 43, 47, 53, 57, 59, 61, 67, 68, 71, 73, 79, 83, 85, 87, 89, 97, 101, 103, 107, 109, 111, 113, 121, 127, 131, 137, 139, 141, 143, 149, 151, 157, 163, 164, 167, 169, 173, 179, 181, 185, 187, 191, 193, 197, 199, 209, 211
Offset: 1

Views

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Comments

All primes q > p are included, in that binomial(q+p,q) == (1+floor(p/q)) == 1 (mod q) holds for those primes.

Crossrefs

Programs

  • PARI
    isok(n) = ((binomial(n+10, n) % n) == 1) \\ Michel Marcus, Jul 15 2013

A121707 Numbers n > 1 such that n^3 divides Sum_{k=1..n-1} k^n = A121706(n).

Original entry on oeis.org

35, 55, 77, 95, 115, 119, 143, 155, 161, 187, 203, 209, 215, 221, 235, 247, 253, 275, 287, 295, 299, 319, 323, 329, 335, 355, 371, 377, 391, 395, 403, 407, 413, 415, 437, 455, 473, 475, 493, 497, 515, 517, 527, 533, 535, 539, 551, 559, 575, 581, 583, 589, 611
Offset: 1

Views

Author

Alexander Adamchuk, Aug 16 2006

Keywords

Comments

All terms belong to A038509 (Composite numbers with smallest prime factor >= 5). Many but not all terms belong to A060976 (Odd nonprimes, c, which divide Bernoulli(2*c)).
Many terms are semiprimes:
- the non-semiprimes are {275, 455, 475, 539, 575, 715, 775, 875, 935, ...}: see A321487;
- semiprime terms that are multiples of 5 have indices {7, 11, 19, 23, 31, 43, 47, 59, 67, 71, 79, 83, ...} = A002145 (Primes of form 4*k + 3, except 3, or k > 0; or Primes which are also Gaussian primes);
- semiprime terms that are multiples of 7 have indices {5, 11, 17, 23, 29, 41, 47, 53, 59, 71, 83, 89, ...} = A003627 (Primes of form 3*k - 1, except 2, or k > 1);
- semiprime terms that are multiples of 11 have indices {5, 7, 13, 17, 19, 23, 37, 43, 47, 53, 59, 67, 73, 79, 83, ...} = Primes of the form 4*k + 1 and 4*k - 1. [Edited by Michel Marcus, Jul 21 2018, M. F. Hasler, Nov 09 2018]
Conjecture: odd numbers n > 1 such that n divides Sum_{k=1..n-1} k^(n-1). - Thomas Ordowski and Robert Israel, Oct 09 2015. Professor Andrzej Schinzel (in a letter to me, dated Dec 29 2015) proved this conjecture. - Thomas Ordowski, Jul 20 2018
Note that n^2 divides Sum_{k=1..n-1} k^n for every odd number n > 1. - Thomas Ordowski, Oct 30 2015
Conjecture: these are "anti-Carmichael numbers" defined; n > 1 such that p - 1 does not divide n - 1 for every prime p dividing n. Equivalently, odd numbers n > 1 such that n is coprime to A027642(n-1). A number n > 1 is an "anti-Carmichael" if and only if gcd(n, b^n - b) = 1 for some integer b. - Thomas Ordowski, Jul 20 2018
It seems that these numbers are all composite terms of A317358. - Thomas Ordowski, Jul 30 2018
a(62) = 697 is the first term not in A267999: see A306097 for all these terms. - M. F. Hasler, Nov 09 2018
If the conjecture from Thomas Ordowski is true, then no term is a multiple of 2 or 3. - Jianing Song, Jan 27 2019
Conjecture: an odd number n > 1 is a term iff gcd(n, A027642(n-1)) = 1. - Thomas Ordowski, Jul 19 2019
Conjecture: Sequence consists of numbers n > 1 such that r = b^n + n - b will produce a prime for one or more integers b > 1. Only when n is in this sequence do one or more prime factors of n fail to divide r for all b. Also, n and b must be coprime for r to be prime. The above also applies to r = b^n - n - b, ignoring n=3, b=2. - Richard R. Forberg, Jul 18 2020
Odd numbers n > 1 such that Sum_{k(even)=2..n-1}2*k^(n-1) == 0 (mod n). - Davide Rotondo, Oct 28 2020
What is the asymptotic density of these numbers? The numbers A267999 have a slightly lower density. The difference between the densities is equal to the density of the numbers A306097. - Thomas Ordowski, Feb 15 2021
The asymptotic density of this sequence is in the interval (0.253, 0.265) (Ordowski, 2021). - Amiram Eldar, Feb 26 2021

Crossrefs

Cf. A000312, A002145, A002997, A027642, A031971, A038509, A060976, A121706, A267999 (probably a subsequence).
Cf. A306097 for terms of this sequence A121707 not in sequence A267999, A321487 for terms which are not semiprimes.
Cf. A191677 (n divides Sum_{k
Cf. A326478 for a conjectured connection with the Bernoulli numbers.

Programs

  • Maple
    filter:= n -> add(k &^ n mod n^3, k=1..n-1) mod n^3 = 0:
    select(filter, [$2..1000]); # Robert Israel, Oct 08 2015
  • Mathematica
    fQ[n_] := Mod[Sum[PowerMod[k, n, n^3], {k, n - 1}], n^3] == 0; Select[
    Range[2, 611], fQ] (* Robert G. Wilson v, Apr 04 2011 and slightly modified Aug 02 2018 *)
  • PARI
    is(n)=my(n3=n^3);sum(k=1,n-1,Mod(k,n3)^n)==0 \\ Charles R Greathouse IV, May 09 2013
    
  • PARI
    for(n=2, 1000, if(sum(k=1, n-1, k^n) % n^3 == 0, print1(n", "))) \\ Altug Alkan, Oct 15 2015
    
  • Sage
    # after Andrzej Schinzel
    def isA121707(n):
        if n == 1 or is_even(n): return False
        return n.divides(sum(k^(n-1) for k in (1..n-1)))
    [n for n in (1..611) if isA121707(n)] # Peter Luschny, Jul 18 2019

Extensions

Sequence corrected by Robert G. Wilson v, Apr 04 2011

A133635 Nonprime numbers k such that binomial(k+p,k) mod k = 1, where p=5.

Original entry on oeis.org

26, 34, 49, 58, 74, 77, 82, 91, 98, 106, 119, 121, 122, 133, 143, 146, 154, 161, 169, 178, 187, 194, 202, 203, 209, 217, 218, 221, 226, 242, 247, 253, 259, 266, 274, 287, 289, 298, 299, 301, 314, 319, 322, 323, 329, 338, 341, 343, 346, 361, 362, 371, 377, 386
Offset: 1

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Programs

  • Mathematica
    nn=400;With[{c=Complement[Range[nn],Prime[Range[PrimePi[nn]]]]}, Select[ c,Mod[Binomial[#+5,#],#]==1&]] (* Harvey P. Dale, Sep 24 2012 *)
  • Python
    from itertools import count, islice
    from math import comb
    from sympy import isprime
    def A133635_gen(startvalue=1): # generator of terms >= startvalue
        return filter(lambda k:comb(k+5,k)%k==1 and not isprime(k),count(max(startvalue,1)))
    A133635_list = list(islice(A133635_gen(),30)) # Chai Wah Wu, Feb 22 2023

A133623 Binomial(n+p, n) mod n where p=3.

Original entry on oeis.org

0, 0, 2, 3, 1, 0, 1, 5, 4, 6, 1, 11, 1, 8, 6, 9, 1, 16, 1, 11, 8, 12, 1, 21, 1, 14, 10, 15, 1, 26, 1, 17, 12, 18, 1, 31, 1, 20, 14, 21, 1, 36, 1, 23, 16, 24, 1, 41, 1, 26, 18, 27, 1, 46, 1, 29, 20, 30, 1, 51, 1, 32, 22, 33, 1, 56, 1, 35, 24, 36, 1, 61, 1, 38, 26, 39, 1, 66, 1, 41, 28, 42, 1
Offset: 1

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Comments

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.
Appears to satisfy the recurrence: a(n) = -2*a(n-1) - a(n-2) + 2*a(n-3) + 4*a(n-4) + 2*a(n-5) - a(n-6) - 2*a(n-7) - a(n-8) for n > 14. - Chai Wah Wu, May 25 2016

Programs

  • Mathematica
    Table[Mod[Binomial[n+3,n],n],{n,90}] (* Harvey P. Dale, Nov 22 2011 *)

Formula

a(n) = binomial(n+3,3) mod n.
a(n)=1 if n is a prime > 3, since binomial(n+3,n)==(1+floor(3/n))(mod n), provided n is a prime.
From Chai Wah Wu, May 26 2016: (Start)
a(n) = (n^3 + 5*n + 6)/6 mod n.
For n > 6:
if n mod 6 == 0, then a(n) = 5*n/6 + 1.
if n mod 6 is in {1, 5}, then a(n) = 1.
if n mod 6 is in {2, 4}, then a(n) = n/2 + 1.
if n mod 6 == 3, then a(n) = n/3 + 1.
(End)

A133622 a(n) = 1 if n is odd, a(n) = n/2+1 if n is even.

Original entry on oeis.org

1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1, 21, 1, 22, 1, 23, 1, 24, 1, 25, 1, 26, 1, 27, 1, 28, 1, 29, 1, 30, 1, 31, 1, 32, 1, 33, 1, 34, 1, 35, 1, 36, 1, 37, 1, 38, 1, 39, 1, 40, 1, 41, 1, 42, 1, 43, 1, 44, 1
Offset: 1

Author

Hieronymus Fischer, Sep 30 2007

Keywords

Comments

a(n) is the count of terms a(n+1) present so far in the sequence, with a(n+1) included in the count; example: a(1) = 1 "says" that there is 1 term "2" so far in the sequence; a(2) = 2 "says" that there are 2 terms "1" so far in the sequence... etc. This comment was inspired by A039617. - Eric Angelini, Mar 03 2020

Crossrefs

Programs

  • Haskell
    import Data.List (transpose)
    a133622 n = (1 - m) * n' + 1 where (n', m) = divMod n 2
    a133622_list = concat $ transpose [[1, 1 ..], [2 ..]]
    -- Reinhard Zumkeller, Feb 20 2015
    
  • Maple
    seq([1,n][],n=2..100); # Robert Israel, May 27 2016
  • Mathematica
    Riffle[Range[2,50],1,{1,-1,2}] (* Harvey P. Dale, Jan 19 2013 *)
  • PARI
    a(n)=if(n%2,1,n/2+1) \\ Charles R Greathouse IV, Sep 02 2015

Formula

a(n)=1+(binomial(n+1,2)mod n)=1+(binomial(n+1,n-1)mod n).
a(n)=binomial(n+2,2) mod n = binomial(n+2,n) mod n for n>2.
a(n)=1+(1+(-1)^n)*n/4.
a(n)=1+(A000217(n) mod n).
a(n)=a(n-2)+1, if n is even, a(n)=a(n-2) if n is odd.
a(n)=a(n-2)+1-(n mod 2)=a(n-2)+(1+(-1)^n)/2 for n>2.
a(n)=(a(n-3)+a(n-2))/a(n-1) for n>3.
G.f.: g(x)=x(1+2x-x^2-x^3)/(1-x^2)^2.
G.f.: (Q(0)-1-x)/x^2, where Q(k)= 1 + (k+1)*x/(1 - x/(x + (k+1)/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Apr 23 2013
a(n) = 2*a(n-2)-a(n-4) for n > 4. - Chai Wah Wu, May 26 2016
E.g.f.: exp(x) - 1 + x*sinh(x)/2. - Robert Israel, May 27 2016

A133875 n modulo 5 repeated 5 times.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1
Offset: 0

Author

Hieronymus Fischer, Oct 10 2007

Keywords

Comments

Periodic with length 5^2 = 25.

Programs

  • Magma
    [(1 + Floor(n/5)) mod 5 : n in [0..50]]; // Wesley Ivan Hurt, Jun 06 2014
  • Maple
    A133875:=n->((1+floor(n/5)) mod 5); seq(A133875(n), n=0..100); # Wesley Ivan Hurt, Jun 06 2014
  • Mathematica
    Table[Mod[1 + Floor[n/5], 5], {n, 0, 100}] (* Wesley Ivan Hurt, Jun 06 2014 *)
    LinearRecurrence[{1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1},{1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,0},120] (* Harvey P. Dale, Dec 14 2017 *)

Formula

a(n) = (1 + floor(n/5)) mod 5.
a(n) = A010874(A002266(n+5)).
a(n) = 1 + floor(n/5) - 5*floor((n+5)/25).
a(n) = (((n+5) mod 25) - (n mod 5)) / 5.
a(n) = ((n + 5 - (n mod 5)) / 5) mod 5.
a(n) = A010874((n + 5 - A010874(n))/5).
a(n) = binomial(n+5, n) mod 5 = binomial(n+5, 5) mod 5.
a(n) = +a(n-1) -a(n-5) +a(n-6) -a(n-10) +a(n-11) -a(n-15) +a(n-16) -a(n-20) +a(n-21). - R. J. Mathar, Sep 03 2011
G.f.: ( 1+2*x^5+3*x^10+4*x^15 ) / ( (1-x)*(x^20+x^15+x^10+x^5+1) ). - R. J. Mathar, Sep 03 2011

A133885 Binomial(n+5,n) mod 5^2.

Original entry on oeis.org

1, 6, 21, 6, 1, 2, 12, 17, 12, 2, 3, 18, 13, 18, 3, 4, 24, 9, 24, 4, 5, 5, 5, 5, 5, 6, 11, 1, 11, 6, 7, 17, 22, 17, 7, 8, 23, 18, 23, 8, 9, 4, 14, 4, 9, 10, 10, 10, 10, 10, 11, 16, 6, 16, 11, 12, 22, 2, 22, 12, 13, 3, 23, 3, 13, 14, 9, 19, 9, 14, 15, 15, 15, 15, 15, 16, 21, 11, 21, 16, 17
Offset: 0

Author

Hieronymus Fischer, Oct 10 2007

Keywords

Comments

Periodic with length 5^3=125.

Crossrefs

For the sequence regarding binomial(n+5, n) mod 5 see A133875.

Programs

  • Mathematica
    Table[Mod[Binomial[n+5,n],25],{n,0,90}] (* Harvey P. Dale, Jan 12 2023 *)

Formula

a(n)=binomial(n+5,5) mod 5^2.
G.f. g(x)=sum{0<=k<125, a(k)*x^k}/(1-x^125).

A362686 Binomial(n+p, n) mod n where p=6.

Original entry on oeis.org

0, 0, 0, 2, 2, 0, 1, 3, 1, 8, 1, 0, 1, 8, 9, 5, 1, 10, 1, 10, 15, 12, 1, 15, 6, 14, 1, 8, 1, 12, 1, 9, 12, 18, 8, 10, 1, 20, 27, 19, 1, 36, 1, 12, 10, 24, 1, 45, 1, 36, 18, 14, 1, 28, 12, 15, 39, 30, 1, 48, 1, 32, 1, 17, 14, 12, 1, 18, 24, 50, 1, 19, 1, 38
Offset: 1

Author

Ray Chandler, Apr 29 2023

Keywords

Programs

  • Mathematica
    Table[Mod[Binomial[n+6, n], n], {n, 90}]

Formula

a(n)=binomial(n+6,n) mod n.
For n > 1452, a(n) = 2*a(n-720) - a(n-1440).
Previous Showing 11-20 of 46 results. Next