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.

A179621 a(n) = A179620(n)/A130882(n) unless A130882(n) = 0 in which case a(n) = 0.

Original entry on oeis.org

0, 1, 1, 4, 2, 2, 1, 7, 2, 4, 1, 10, 5, 1, 12, 5, 13, 2, 7, 1, 16, 11, 17, 2, 1, 19, 2, 10, 1, 22, 11, 1, 24, 7, 25, 10, 1, 27, 11, 28, 14, 2, 1, 31, 21, 32, 16, 1, 34, 17, 14, 1, 37, 25, 38, 19, 1, 40, 20, 1, 42, 17, 43, 2, 1, 45, 13, 46, 31, 47, 2, 1, 49, 14, 25, 1, 52, 26, 2, 1
Offset: 1

Views

Author

Rémi Eismann, Jan 09 2011

Keywords

Comments

a(n) is the "level" of composite numbers.
The decomposition of composite numbers into weight * level + gap is A002808(n) = A130882(n) * a(n) + A073783(n) if a(n) > 0.
A179620(n) = A002808(n) - A073783(n) if A002808(n) - A073783(n) > A073783(n), 0 otherwise.

Examples

			For n = 1 we have A130882(1) = 0, hence a(1) = 0.
For n = 3 we have A179620(3)/A130882(3)= 7 / 7 = 1; hence a(3) = 1.
For n = 24 we have A179620(24)/A130882(24)= 34 / 17 = 2; hence a(24) = 2.
		

Crossrefs

A133150 a(n) = smallest k such that A000290(n+1) = A000290(n) + (A000290(n) mod k), or 0 if no such k exists.

Original entry on oeis.org

0, 0, 0, 0, 14, 23, 17, 47, 31, 79, 49, 119, 71, 167, 97, 223, 127, 41, 46, 359, 199, 439, 241, 527, 82, 89, 337, 727, 391, 839, 449, 137, 73, 1087, 577, 1223, 647, 1367, 103, 217, 94, 1679, 881, 1847, 967, 119, 151, 2207, 1151, 2399, 1249, 113, 193, 401, 1457
Offset: 1

Views

Author

Rémi Eismann, Sep 22 2007 - Jan 10 2011

Keywords

Comments

a(n) is the "weight" of squares (A000290).
The decomposition of squares into weight * level + gap is A000217(n) = a(n) * A184221(n) + A005408(n) if a(n) > 0.

Examples

			For n = 1 we have A000290(n) = 1, A000290(n+1) = 4; there is no k such that 4 - 1 = 3 = (1 mod k), hence a(1) = 0.
For n = 5 we have A000290(n) = 25, A000290(n+1) = 36; 14 is the smallest k such that 36 - 25 = 11 = (25 mod k), hence a(5) = 14.
For n = 18 we have A000290(n) = 324, A000290(n+1) = 361; 41 is the smallest k such that 361 - 324 = 37 = (324 mod k), hence a(18) = 41.
		

Crossrefs

A179620 a(n) = largest k such that A002808(n+1) = A002808(n) + (A002808(n) mod k), or 0 if no such k exists.

Original entry on oeis.org

0, 4, 7, 8, 8, 10, 13, 14, 14, 16, 19, 20, 20, 23, 24, 25, 26, 26, 28, 31, 32, 33, 34, 34, 37, 38, 38, 40, 43, 44, 44, 47, 48, 49, 50, 50, 53, 54, 55, 56, 56, 58, 61, 62, 63, 64, 64, 67, 68, 68, 70, 73, 74, 75, 76, 76, 79, 80, 80, 83, 84, 85, 86, 86, 89
Offset: 1

Views

Author

Rémi Eismann, Jan 09 2011

Keywords

Comments

a(n) = A002808(n) - A073783(n) if A002808(n) - A073783(n) > A073783(n), 0 otherwise.
A002808(n): composite numbers; A073783(n): first difference of composite numbers.

Examples

			For n = 1 we have A002808(n) = 4, A002808(n+1) = 6; there is no k such that 6 - 4 = 2 = (4 mod k), hence a(1) = 0.
For n = 3 we have A002808(n) = 8, A002808(n+1) = 9; 7 is the largest k such that 9 - 8 = 1 = (8 mod k), hence a(3) = 7; a(3) = A002808(3) - A073783(3) = 8 - 1 = 7.
For n = 24 we have A002808(n) = 36, A002808(n+1) = 38; 34 is the largest k such that 38 - 36 = 2 = (36 mod k), hence a(24) = 34; a(24) = A002808(24) - A073783(24) = 34.
		

Crossrefs

A133346 a(n) = smallest k such that prime(n+2) = prime(n) + (prime(n) mod k), or 0 if no such k exists.

Original entry on oeis.org

0, 0, 0, 0, 0, 7, 11, 0, 15, 21, 21, 31, 7, 11, 35, 9, 17, 17, 61, 9, 21, 23, 23, 77, 7, 19, 97, 101, 91, 19, 13, 41, 25, 127, 47, 139, 21, 17, 31, 11, 167, 13, 37, 11, 61, 25, 39, 7, 13, 73, 9, 227, 25, 239, 35, 15, 9, 29, 271, 269, 37, 25, 7, 61, 59, 27, 21, 13, 11, 113, 113
Offset: 1

Views

Author

Rémi Eismann, Oct 20 2007

Keywords

Examples

			For n = 1 we have prime(n) = 2, prime(n+2) = 5; there is no k such that 5 - 2 = 3 = (2 mod k), hence a(1) = 0.
For n = 6 we have prime(n) = 13, prime(n+2) = 19; 7 is the smallest k such that 19 - 13 = 6 = (13 mod k), hence a(6) = 7.
For n = 30 we have prime(n) = 113, prime(n+2) = 131; 19 is the smallest k such that 131 - 113 = 18 = (113 mod k), hence a(30) = 19.
		

Crossrefs

A133347 a(n) = smallest k such that prime(n+3) = prime(n) + (prime(n) mod k), or 0 if no such k exists.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 19, 27, 29, 27, 33, 39, 47, 49, 55, 59, 19, 61, 65, 15, 29, 31, 31, 29, 29, 89, 23, 113, 41, 121, 15, 27, 47, 21, 17, 31, 15, 33, 61, 25, 57, 57, 193, 71, 43, 31, 43, 221, 73, 233, 27, 83, 257, 37, 29, 51, 51, 21, 11, 97, 289, 41, 313, 107, 67
Offset: 1

Views

Author

Rémi Eismann, Oct 20 2007

Keywords

Examples

			For n = 1 we have prime(n) = 2, prime(n+3) = 7; there is no k such that 7 - 2 = 5 = (2 mod k), hence a(1) = 0.
For n = 10 we have prime(n) = 29, prime(n+3) = 41; 17 is the smallest k such that 41 - 29 = 12 = (29 mod k), hence a(10) = 17.
For n = 53 we have prime(n) = 241, prime(n+3) = 263; 73 is the smallest k such that 263 - 241 = 22 = (241 mod k), hence a(53) = 73.
		

Crossrefs

Showing 1-5 of 5 results.