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 21-27 of 27 results.

A364124 Numbers k such that k and k+1 are both Stolarsky-Niven numbers (A364123).

Original entry on oeis.org

8, 56, 84, 159, 195, 224, 384, 399, 405, 995, 1140, 1224, 1245, 1295, 1309, 1419, 1420, 1455, 1474, 1507, 2585, 2597, 2600, 2680, 2681, 2727, 2744, 2750, 2799, 2855, 3122, 3311, 3339, 3345, 3618, 3707, 3795, 4004, 6770, 6774, 6984, 6985, 7014, 7074, 7154, 7405
Offset: 1

Views

Author

Amiram Eldar, Jul 07 2023

Keywords

Crossrefs

Programs

  • Mathematica
    seq[count_, nConsec_] := Module[{cn = stolNivQ /@ Range[nConsec], s = {}, c = 0, k = nConsec + 1}, While[c < count, If[And @@ cn, c++; AppendTo[s, k - nConsec]]; cn = Join[Rest[cn], {stolNivQ[k]}]; k++]; s]; seq[50, 2] (* using the function stolNivQ[n] from A364123 *)
  • PARI
    lista(count, nConsec) = {my(cn = vector(nConsec, i, isStolNivQ(i)), c = 0, k = nConsec + 1); while(c < count, if(vecsum(cn) == nConsec, c++; print1(k-nConsec, ", ")); cn = concat(vecextract(cn, "^1"), isStolNivQ(k)); k++);} \\ using the function isA364123(n) from A364123
    lista(50, 2)

A377271 Numbers k such that k and k+1 are both terms in A377209.

Original entry on oeis.org

1, 2, 3, 4, 5, 12, 89, 1824, 3024, 7024, 15084, 17184, 18935, 22624, 28657, 29424, 31464, 37024, 38835, 40032, 42679, 44975, 47375, 66744, 66815, 78219, 89495, 107456, 112175, 119744, 144599, 148519, 169883, 171941, 172025, 188208, 207935, 226624, 244404, 248255
Offset: 1

Views

Author

Amiram Eldar, Oct 22 2024

Keywords

Examples

			1824 is a term since both 1824 and 1825 are in A377209: 1824/A007895(1824) = 304 and 304/A007895(304) = 76 are integers, and 1825/A007895(1825) = 365 and 365/A007895(365) = 73 are integers.
		

Crossrefs

Cf. A007895, A376793 (binary analog).
Subsequence of A328208, A328209 and A377209.
Subsequences: A377272, A377273.

Programs

  • Mathematica
    zeck[n_] := Length[DeleteCases[NestWhileList[# - Fibonacci[Floor[Log[Sqrt[5]*# + 3/2]/Log[GoldenRatio]]] &, n, # > 1 &], 0]]; (* Alonso del Arte at A007895 *)
    q[k_] := q[k] = Module[{z = zeck[k]}, Divisible[k, z] && Divisible[k/z, zeck[k/z]]]; Select[Range[250000], q[#] && q[#+1] &]
  • PARI
    zeck(n) = if(n<4, n>0, my(k=2, s, t); while(fibonacci(k++)<=n, ); while(k && n, t=fibonacci(k); if(t<=n, n-=t; s++); k--); s); \\ Charles R Greathouse IV at A007895
    is1(k) = {my(z = zeck(k)); !(k % z) && !((k/z) % zeck(k/z)); }
    lista(kmax) = {my(q1 = is1(1), q2); for(k = 2, kmax, q2 = is1(k); if(q1 && q2, print1(k-1, ", ")); q1 = q2); }

A330713 Numbers k such that both k and k+1 are Zeckendorf-Niven numbers (A328208) and lazy-Fibonacci-Niven numbers (A328212).

Original entry on oeis.org

1, 7475, 10205, 13740, 40754, 52479, 93044, 95984, 141911, 151487, 196416, 198255, 202824, 202895, 213920, 231552, 335535, 339744, 363320, 366876, 404719, 408680, 434259, 446480, 487710, 495159, 504440, 528408, 585599, 607410, 645560, 646575, 665567, 735020, 736280
Offset: 1

Views

Author

Amiram Eldar, Dec 27 2019

Keywords

Comments

Can 3 consecutive numbers be both Zeckendorf-Niven numbers and lazy-Fibonacci-Niven numbers? Equivalently, are there numbers that are both in A328210 and A328214?

Examples

			7475 is a term since A007895(7475) = 5 and A112310(7475) = 13 and both 5 and 13 are divisors of 7475, and A007895(7476) = 6 and A112310(7476) = 12 and both 6 and 12 are divisors of 7476.
		

Crossrefs

Intersection of A328209 and A328213.

A377272 Numbers k such that k and k+1 are both terms in A377210.

Original entry on oeis.org

1, 2, 3, 4, 5, 12, 47375, 2310399, 3525200, 6506367, 9388224, 17613504, 29373839, 41534800, 48191759, 48344120, 66927384, 68094999, 71982999, 92547279, 95497919, 110146959, 110395439, 126123920, 148865535, 152546030, 154451583, 171570069, 193628799, 232058519
Offset: 1

Views

Author

Amiram Eldar, Oct 22 2024

Keywords

Examples

			47375 is a term since both 47375 and 47376 are in A377210: 47375/A007895(47375) = 9475, 9475/A007895(9475) = 1895 and 1895/A007895(1895) = 379 are integers, and 47376/A007895(47376) = 15792, 15792/A007895(15792) = 3948 and 3948/A007895(3948) = 1316 are integers.
		

Crossrefs

Cf. A007895, A376795 (binary analog).
Subsequence of A328208, A328209, A377210 and A377271.

Programs

  • Mathematica
    zeck[n_] := Length[DeleteCases[NestWhileList[# - Fibonacci[Floor[Log[Sqrt[5]*# + 3/2]/Log[GoldenRatio]]] &, n, # > 1 &], 0]]; (* Alonso del Arte at A007895 *)
    q[k_] := q[k] = Module[{z = zeck[k], z2, m, n}, IntegerQ[m = k/z] && Divisible[m, z2 = zeck[m]] && Divisible[n = m/z2, zeck[n]]]; Select[Range[50000], q[#] && q[#+1] &]
  • PARI
    zeck(n) = if(n<4, n>0, my(k=2, s, t); while(fibonacci(k++)<=n, ); while(k && n, t=fibonacci(k); if(t<=n, n-=t; s++); k--); s); \\ Charles R Greathouse IV at A007895
    is1(k) = {my(z = zeck(k), z2, m); if(k % z, return(0)); m = k/z; z2 = zeck(m); !(m % z2) && !((m/z2) % zeck(m/z2)); }
    lista(kmax) = {my(q1 = is1(1), q2); for(k = 2, kmax, q2 = is1(k); if(q1 && q2, print1(k-1, ", ")); q1 = q2); }

A331821 Positive numbers k such that -k and -(k + 1) are both negabinary-Niven numbers (A331728).

Original entry on oeis.org

2, 3, 8, 9, 15, 24, 27, 32, 33, 39, 54, 55, 63, 77, 111, 114, 115, 123, 128, 129, 135, 144, 159, 174, 175, 203, 234, 235, 245, 255, 264, 294, 295, 329, 370, 371, 384, 413, 414, 415, 444, 447, 474, 475, 495, 504, 507, 512, 513, 519, 534, 535, 543, 580, 581, 624
Offset: 1

Views

Author

Amiram Eldar, Jan 27 2020

Keywords

Examples

			8 is a term since both -8 and -(8 + 1) = -9 are negabinary-Niven numbers: A039724(-8) = 1000 and 1 + 0 + 0 + 0 = 1 is a divisor of 8, and A039724(-9) = 1011 and 1 + 0 + 1 + 1 = 3 is a divisor of 9.
		

Crossrefs

Programs

  • Mathematica
    negaBinWt[n_] := negaBinWt[n] = If[n == 0, 0, negaBinWt[Quotient[n - 1, -2]] + Mod[n, 2]]; negaBinNivenQ[n_] := Divisible[n, negaBinWt[-n]]; c = 0; k = 1; s = {}; v = Table[-1, {2}]; While[c < 60, If[negaBinNivenQ[k], v = Join[Rest[v], {k}]; If[AllTrue[Differences[v], # == 1 &], c++; AppendTo[s, k - 1]]]; k++]; s

A376028 Zeckendorf-Niven numbers (A328208) with a record gap to the next Zeckendorf-Niven number.

Original entry on oeis.org

1, 6, 18, 30, 36, 48, 208, 5298, 6132, 6601, 8280, 12228, 17052, 68220, 113990, 120504, 438570, 1015416, 1343232, 1848400, 5338548, 12727143, 83877810, 330963120, 409185360, 418561770, 2428646640, 2834120595, 2876557200, 2940992640, 7218753758, 7306145012, 7609637140
Offset: 1

Views

Author

Amiram Eldar, Sep 06 2024

Keywords

Comments

The corresponding record gaps are 1, 2, 3, 4, 6, 7, 20, ... (see the link for more values).
Ray (2005) and Ray and Cooper (2006) proved that the asymptotic density of the Zeckendorf-Niven numbers is 0. Therefore, this sequence is infinite.

Examples

			6 is a term since it is a Zeckendorf-Niven number, and the next Zeckendorf-Niven number is 8, with a gap 8 - 6 = 2, which is a record since all the numbers below 6 are also Zeckendorf-Niven numbers.
		

References

  • Andrew B. Ray, On the natural density of the k-Zeckendorf Niven numbers, Ph.D. dissertation, Central Missouri State University, 2005.

Crossrefs

Similar sequences: A337076, A337077, A347495, A347496, A376029.

Programs

  • Mathematica
    z[n_] := Length[DeleteCases[NestWhileList[# - Fibonacci[Floor[Log[Sqrt[5]*# + 3/2]/Log[GoldenRatio]]] &, n, # > 1 &], 0]]; znQ[n_] := Divisible[n, z[n]]; seq[kmax_] := Module[{gapmax = 0, gap, k1 = 1, s = {}}, Do[If[znQ[k], gap = k - k1; If[gap > gapmax, gapmax = gap; AppendTo[s, k1]]; k1 = k], {k, 2, kmax}]; s]; seq[10^4]

A377273 Starts of runs of 3 consecutive integers that are terms in A377209.

Original entry on oeis.org

1, 2, 3, 4, 231700599, 1069467839, 1156703470, 1241186868, 2533742848, 2684864798, 3037193808, 5056780650, 7073145000, 7557047134, 9623855878, 12090760318, 12120887700, 13816479742, 14430478270, 15811947072, 16864260048, 20905152190, 22735441078, 23224253128, 23269229774, 23766221400, 25175490262
Offset: 1

Views

Author

Amiram Eldar, Oct 22 2024

Keywords

Examples

			231700599 is a term since 231700599, 231700600 and 231700601 are all terms in A377209: 231700599/A007895(231700599) = 17823123 and 17823123/A007895(17823123) = 1980347 are integers, 231700600/A007895(231700600) = 23170060 and 23170060/A007895(23170060) = 2317006 are integers, and 231700601/A007895(231700601) = 21063691 and 21063691/A007895(21063691) = 1914881 are integers.
		

Crossrefs

Cf. A007895, A376794 (binary analog).
Subsequence of A328208, A328209, A328210, A377209 and A377271.

Programs

  • PARI
    zeck(n) = if(n<4, n>0, my(k=2, s, t); while(fibonacci(k++)<=n, ); while(k && n, t=fibonacci(k); if(t<=n, n-=t; s++); k--); s); \\ Charles R Greathouse IV at A007895
    is1(k) = {my(z = zeck(k)); !(k % z) && !((k/z) % zeck(k/z)); }
    lista(kmax) = {my(q1 = is1(1), q2 = is1(2), q3); for(k = 3, kmax, q3 = is1(k); if(q1 && q2 && q3, print1(k-2, ", ")); q1 = q2; q2 = q3);}
Previous Showing 21-27 of 27 results.