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

A352342 Lazy-Pell-Niven numbers: numbers that are divisible by the sum of the digits in their maximal (or lazy) representation in terms of the Pell numbers (A352339).

Original entry on oeis.org

1, 2, 4, 9, 12, 15, 20, 24, 25, 28, 30, 35, 40, 48, 50, 54, 56, 60, 63, 64, 70, 72, 78, 84, 88, 91, 96, 102, 115, 120, 136, 144, 160, 162, 168, 180, 182, 184, 189, 207, 209, 210, 216, 217, 234, 246, 256, 261, 270, 304, 306, 308, 315, 320, 328, 333, 350, 352, 357
Offset: 1

Views

Author

Amiram Eldar, Mar 12 2022

Keywords

Comments

Numbers k such that A352340(k) | k.

Examples

			4 is a term since its maximal Pell representation, A352339(4) = 11, has the sum of digits A352340(4) = 1+1 = 2 and 4 is divisible by 2.
		

Crossrefs

Programs

  • Mathematica
    pell[1] = 1; pell[2] = 2; pell[n_] := pell[n] = 2*pell[n - 1] + pell[n - 2]; pellp[n_] := Module[{s = {}, m = n, k}, While[m > 0, k = 1; While[pell[k] <= m, k++]; k--; AppendTo[s, k]; m -= pell[k]; k = 1]; IntegerDigits[Total[3^(s - 1)], 3]]; q[n_] := Module[{v = pellp[n]}, nv = Length[v]; i = 1; While[i <= nv - 2, If[v[[i]] > 0 && v[[i + 1]] == 0 && v[[i + 2]] < 2, v[[i ;; i + 2]] += {-1, 2, 1}; If[i > 2, i -= 3]]; i++]; i = Position[v, _?(# > 0 &)]; Divisible[n, Plus @@ v[[i[[1, 1]] ;; -1]]]]; Select[Range[300], q]

A352343 Numbers k such that k and k+1 are both lazy-Pell-Niven numbers (A352342).

Original entry on oeis.org

1, 24, 63, 209, 216, 459, 560, 584, 656, 729, 999, 1110, 1269, 1728, 1859, 1989, 2100, 2196, 2197, 2255, 2650, 2651, 2820, 3443, 3497, 4080, 4563, 5291, 5784, 5785, 5837, 5928, 6252, 6383, 7344, 7657, 7812, 8150, 8203, 8459, 8670, 8749, 9251, 9295, 9372, 9464, 9840, 9884
Offset: 1

Views

Author

Amiram Eldar, Mar 12 2022

Keywords

Comments

Numbers k such that A352340(k) | k and A352340(k+1) | k+1.

Examples

			24 is a term since 24 and 25 are both lazy-Pell-Niven numbers: the maximal Pell representation of 24, A352339(24) = 1210, has the sum of digits A352340(24) = 1+2+1+0 = 4 and 24 is divisible by 4, and the maximal Pell representation of 25, A352339(25) = 1211, has the sum of digits A352340(25) = 1+2+1+1 = 5 and 25 is divisible by 5.
		

Crossrefs

Programs

  • Mathematica
    pell[1] = 1; pell[2] = 2; pell[n_] := pell[n] = 2*pell[n - 1] + pell[n - 2]; pellp[n_] := Module[{s = {}, m = n, k}, While[m > 0, k = 1; While[pell[k] <= m, k++]; k--; AppendTo[s, k]; m -= pell[k]; k = 1]; IntegerDigits[Total[3^(s - 1)], 3]]; lazyPellNivenQ[n_] := Module[{v = pellp[n]}, nv = Length[v]; i = 1; While[i <= nv - 2, If[v[[i]] > 0 && v[[i + 1]] == 0 && v[[i + 2]] < 2, v[[i ;; i + 2]] += {-1, 2, 1}; If[i > 2, i -= 3]]; i++]; i = Position[v, _?(# > 0 &)]; Divisible[n, Plus @@ v[[i[[1, 1]] ;; -1]]]]; Select[Range[10^4], lazyPellNivenQ[#] && lazyPellNivenQ[#+1] &]

A352345 Starts of runs of 4 consecutive lazy-Pell-Niven numbers (A352342).

Original entry on oeis.org

750139, 41765247, 54831951, 56423275, 136038447, 151175724, 223956843, 227483124, 293913170, 362557214, 382572475, 457616575, 502106253, 562407324, 586380624, 637133390, 724382239, 771849439, 774421478, 859463253, 926398647, 953750523, 1043787390, 1193063550
Offset: 1

Views

Author

Amiram Eldar, Mar 12 2022

Keywords

Comments

Conjecture: There are no runs of 5 consecutive lazy-Pell-Niven numbers (checked up to 10^9).

Examples

			750139 is a term since 750139, 750140, 750141 and 750142 are all divisible by the sum of the digits in their maximal Pell representation:
       k        A352339(k)  A352340(k)  k/A352340(k)
  ------  ----------------  ---------   -----------
  750139  1102022021112220         19         39481
  750140  1102022021112221         20         37507
  750141  1102022021112222         21         35721
  750142  1102022021120210         17         44126
		

Crossrefs

A352510 Starts of runs of 3 consecutive Catalan-Niven numbers (A352508).

Original entry on oeis.org

4, 55, 144, 145, 511, 2943, 6950, 7734, 9470, 9750, 15630, 15631, 35034, 35464, 41590, 41986, 64735, 68523, 68870, 77510, 81150, 90958, 106063, 118264, 119043, 135970, 139403, 163188, 164862, 164863, 171346, 181510, 200759, 202761, 202762, 208024, 209230, 209586
Offset: 1

Views

Author

Amiram Eldar, Mar 19 2022

Keywords

Examples

			4 is a term since 4, 5 and 6 are all Catalan-Niven numbers: the Catalan representation of 4, A014418(20) = 20, has the sum of digits 2+0 = 2 and 4 is divisible by 2, the Catalan representation of 5, A014418(5) = 100, has the sum of digits 1+0+0 = 1 and 5 is divisible by 1, and the Catalan representation of 6, A014418(6) = 101, has the sum of digits 1+0+1 = 2 and 6 is divisible by 2.
		

Crossrefs

Programs

  • Mathematica
    c[n_] := c[n] = CatalanNumber[n]; catNivQ[n_] := Module[{s = {}, m = n, i}, While[m > 0, i = 1; While[c[i] <= m, i++]; i--; m -= c[i]; AppendTo[s, i]]; Divisible[n, Plus @@ IntegerDigits[Total[4^(s - 1)], 4]]]; seq[count_, nConsec_] := Module[{cn = catNivQ /@ Range[nConsec], s = {}, c = 0, k = nConsec + 1}, While[c < count, If[And @@ cn, c++; AppendTo[s, k - nConsec]]; cn = Join[Rest[cn], {catNivQ[k]}]; k++]; s]; seq[30, 3]

A364218 Starts of runs of 3 consecutive integers that are Jacobsthal-Niven numbers (A364216).

Original entry on oeis.org

1, 2, 14, 42, 43, 44, 86, 182, 544, 686, 846, 854, 1014, 1375, 1384, 1504, 1624, 2105, 2190, 2315, 2358, 2731, 2732, 2763, 2774, 2824, 3243, 3534, 3702, 4205, 4878, 5046, 5408, 5462, 5643, 5663, 6222, 6390, 6935, 7566, 7734, 7928, 8224, 8704, 8910, 9078, 9368
Offset: 1

Views

Author

Amiram Eldar, Jul 14 2023

Keywords

Crossrefs

Programs

  • Mathematica
    consecJacobsthalNiven[10^4, 3] (* using the function from A364217 *)
  • PARI
    lista(10^4, 3) \\ using the function from A364217

A364381 Starts of runs of 3 consecutive integers that are greedy Jacobsthal-Niven numbers (A364379).

Original entry on oeis.org

1, 2, 3, 4, 8, 9, 10, 14, 20, 26, 42, 43, 44, 84, 85, 86, 104, 115, 170, 182, 304, 344, 362, 414, 544, 682, 686, 692, 784, 854, 1014, 1370, 1384, 1504, 1673, 1685, 1706, 2224, 2315, 2358, 2730, 2731, 2732, 2763, 2774, 3243, 3594, 3702, 4144, 4688, 4864, 5046, 5408
Offset: 1

Views

Author

Amiram Eldar, Jul 21 2023

Keywords

Crossrefs

Programs

  • Mathematica
    consecGreedyJN[5500, 3] (* using the function consecGreedyJN from A364380 *)
  • PARI
    lista(5500, 3) \\ using the function lista from A364380

A364125 Starts of runs of 3 consecutive integers that are Stolarsky-Niven numbers (A364123).

Original entry on oeis.org

1419, 2680, 6984, 18765, 20383, 28390, 48697, 55560, 69056, 121913, 125340, 125341, 125739, 133614, 135189, 136409, 140789, 147563, 150138, 155518, 157068, 171819, 317933, 318188, 319395, 323685, 339723, 340846, 349326, 356290, 371041, 389010, 392903, 393809, 400608
Offset: 1

Views

Author

Amiram Eldar, Jul 07 2023

Keywords

Crossrefs

Programs

  • Mathematica
    seq[10, 3] (* generates the first 10 terms, using the function seq[count, nConsec] from A364124 *)
  • PARI
    lista(10, 3) \\ generates the first 10 terms, using the function lista(count, nConsec) from A364124
Showing 1-7 of 7 results.