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.

Showing 1-5 of 5 results.

A095100 Integers m of the form 4k+3 for which all sums Sum_{i=1..u} J(i/m) (with u ranging from 1 to (m-1)) are nonnegative, where J(i/m) is Jacobi symbol of i and m.

Original entry on oeis.org

3, 7, 11, 15, 23, 27, 31, 35, 39, 47, 55, 59, 63, 71, 75, 79, 83, 87, 95, 103, 111, 119, 131, 135, 143, 151, 159, 167, 171, 175, 183, 191, 199, 215, 231, 239, 243, 251, 255, 263, 271, 279, 287, 295, 299, 303, 311, 319, 327, 335, 343, 351, 359, 363
Offset: 1

Views

Author

Antti Karttunen, Jun 01 2004

Keywords

Comments

Integers whose Jacobi-vector forms a valid Motzkin-path.

Crossrefs

Subset of A095102. Complement of A095101 in A004767.
Cf. A095090.

Programs

  • Mathematica
    isMotzkin[n_, k_] := Module[{s = 0, r = True}, Do[s += JacobiSymbol[i, n]; If[s < 0, r = False; Break[]], {i, 1, k}]; r]; A095100[n_] := Select[4*Range[0, n+1]+3, isMotzkin[#, Quotient[#, 2]] &]; A095100[90] (* Jean-François Alcover, Oct 08 2013, translated from Sage *)
  • PARI
    isok(m) = {if(m%4<3, return(0)); my(s=0); for(i=1, m-1, if((s+=kronecker(i, m))<0, return(0))); 1; } \\ Jinyuan Wang, Jul 20 2020
  • Sage
    def is_Motzkin(n, k):
        s = 0
        for i in range(1, k + 1) :
            s += jacobi_symbol(i, n)
            if s < 0: return False
        return True
    def A095100_list(n):
        return [m for m in range(3, n + 1, 4) if is_Motzkin(m, m // 2)]
    A095100_list(363) # Peter Luschny, Aug 08 2012
    

Formula

a(n) = 4*A095274(n) + 3.

A165468 a(n) = (A165469(n)-3)/4.

Original entry on oeis.org

0, 1, 3, 5, 7, 9, 11, 13, 17, 19, 21, 23, 27, 29, 35, 37, 39, 41, 45, 47, 49, 53, 57, 59, 63, 65, 67, 71, 75, 77, 81, 83, 89, 95, 97, 99, 101, 107, 109, 111, 113, 117, 119, 125, 127, 129, 131, 133, 137, 139, 147, 149, 153, 155, 161, 165, 167, 169, 173, 179, 185, 187
Offset: 1

Views

Author

Antti Karttunen, Oct 06 2009

Keywords

Crossrefs

Subset of A095274. Cf. A165607.

A095272 a(n) = (A095102(n)-3)/4.

Original entry on oeis.org

0, 1, 2, 5, 7, 11, 14, 17, 19, 20, 25, 32, 37, 41, 47, 49, 59, 62, 65, 67, 77, 89, 95, 104, 107, 109, 119, 125, 140, 149, 151, 161, 164, 179, 185, 187, 209, 215, 221, 227, 229, 242, 245, 247, 257, 259, 265, 272, 275, 287, 305, 307, 319, 329, 349
Offset: 1

Views

Author

Antti Karttunen, Jun 01 2004

Keywords

Crossrefs

Complement of A095273 in A095278, subset of A095274.

A095275 a(n) = (A095101(n)-3)/4.

Original entry on oeis.org

4, 10, 12, 16, 22, 24, 26, 28, 30, 31, 34, 36, 38, 40, 44, 46, 48, 50, 51, 52, 54, 55, 56, 58, 61, 64, 66, 68, 70, 72, 76, 78, 80, 82, 84, 86, 88, 91, 94, 96, 100, 102, 105, 106, 108, 110, 112, 114, 115, 116, 118, 120, 121, 122, 124, 126, 128, 130, 132
Offset: 0

Views

Author

Antti Karttunen, Jun 01 2004

Keywords

Crossrefs

Cf. A095101. Complement of A095274. Subset: A095273.

A165607 a(n) = (A165608(n)-3)/4.

Original entry on oeis.org

2, 6, 8, 14, 15, 18, 20, 25, 32, 33, 42, 43, 60, 62, 69, 73, 74, 79, 85, 87, 90, 92, 93, 98, 103, 104, 123, 134, 140, 141, 143, 151, 158, 164, 168, 175, 177, 182, 183, 188, 195, 216, 218, 223, 224, 225, 231, 235, 242, 249, 265, 266, 272, 275, 281, 283, 284, 285
Offset: 1

Views

Author

Antti Karttunen, Oct 06 2009

Keywords

Crossrefs

Set-wise difference of A095274 and A165468.
Showing 1-5 of 5 results.