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.

A372095 a(n) = 3-adic valuation of A008336(3*n).

This page as a plain text file.
%I A372095 #15 Jun 03 2024 18:32:01
%S A372095 0,1,0,2,1,2,0,1,2,5,4,5,3,4,3,1,2,3,0,1,0,2,1,2,0,1,0,4,3,4,2,1,2,0,
%T A372095 1,2,5,4,3,5,6,7,5,6,5,2,3,4,6,5,4,6,5,6,2,1,2,0,1,2,0,1,0,3,4,5,3,4,
%U A372095 3,5,4,5,2,3,2,0,1,0,2,3,4,9,8,9,7,8,7
%N A372095 a(n) = 3-adic valuation of A008336(3*n).
%H A372095 Michael De Vlieger, <a href="/A372095/b372095.txt">Table of n, a(n) for n = 1..10000</a>
%F A372095 a(n) = A007949(A008336(3*n)).
%t A372095 k = 2; nn = 360; p[_] := 0; r = 0; q = Prime[k];
%t A372095 {0}~Join~Reap[
%t A372095    Do[If[AnyTrue[#, p[#1] < #2 & @@ # &],
%t A372095         Map[p[#1] += #2 & @@ # &, #],
%t A372095         Map[p[#1] -= #2 & @@ # &, #] ] &@
%t A372095         Map[{PrimePi[#1], #2} & @@ # &, FactorInteger[n]];
%t A372095       If[Divisible[n, q], Sow[p[k] ] ], {n, nn}] ][[-1, 1]]
%Y A372095 Cf. A007949, A008336, A371908, A372840.
%K A372095 nonn,easy
%O A372095 1,4
%A A372095 _Michael De Vlieger_, Jun 02 2024