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.

A352091 Starts of runs of 3 consecutive tribonacci-Niven numbers (A352089).

This page as a plain text file.
%I A352091 #8 Mar 05 2022 04:02:27
%S A352091 6,12,26,80,184,506,664,1602,1603,1704,3409,6034,9830,15723,16744,
%T A352091 19088,21230,21664,22834,33544,39424,40662,40730,51190,55744,56224,
%U A352091 60710,61264,63734,66014,66055,67144,67248,73024,78064,81150,84790,94086,95094,109087,111880
%N A352091 Starts of runs of 3 consecutive tribonacci-Niven numbers (A352089).
%H A352091 Amiram Eldar, <a href="/A352091/b352091.txt">Table of n, a(n) for n = 1..10000</a>
%e A352091 6 is a term since 6, 7 and 8 are all tribonacci-Niven numbers: the minimal tribonacci representation of 6, A278038(6) = 110, has 2 1's and 6 is divisible by 2, the minimal tribonacci representation of 7, A278038(7) = 1000, has one 1 and 7 is divisible by 1, and the minimal tribonacci representation of 8, A278038(8) = 1001, has 2 1's and 8 is divisible by 2.
%t A352091 t[1] = 1; t[2] = 2; t[3] = 4; t[n_] := t[n] = t[n - 1] + t[n - 2] + t[n - 3]; triboNivenQ[n_] := Module[{s = {}, m = n, k}, While[m > 0, k = 1; While[t[k] <= m, k++]; k--; AppendTo[s, k]; m -= t[k]; k = 1]; Divisible[n, DigitCount[Total[2^(s - 1)], 2, 1]]]; seq[count_, nConsec_] := Module[{tri = triboNivenQ /@ Range[nConsec], s = {}, c = 0, k = nConsec + 1}, While[c < count, If[And @@ tri, c++; AppendTo[s, k - nConsec]]; tri = Join[Rest[tri], {triboNivenQ[k]}]; k++]; s]; seq[30, 3]
%Y A352091 Cf. A278038.
%Y A352091 Subsequence of A352089 and A352090.
%Y A352091 A352092 is a subsequence.
%Y A352091 Similar sequences: A154701, A328206, A328210, A328214, A330932, A331087, A333428, A334310, A331822, A342428, A344343, A351716, A351721.
%K A352091 nonn,base
%O A352091 1,1
%A A352091 _Amiram Eldar_, Mar 04 2022