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

A167390 Partial sums of A137442.

Original entry on oeis.org

1, 3, 7, 10, 19, 24, 40, 46, 71, 78, 114, 122, 171, 181, 245, 256, 337, 349, 449, 462, 583, 597, 741, 756, 925, 942, 1138, 1156, 1381, 1400, 1656, 1676, 1965, 1986, 2310, 2332, 2693, 2716, 3116, 3140, 3581, 3607, 4091, 4118, 4647, 4675, 5251, 5280, 5905, 5935
Offset: 1

Views

Author

Gerald Hillier, Nov 02 2009

Keywords

Examples

			a(14)=1+2+4+3+9+5+16+6+25+7+36+8+49+10=181
		

Programs

  • Mathematica
    Module[{nn=40,sq,int,len},sq=Range[nn]^2;int=Complement[Range[nn],sq];len=Min[ Length[ int],nn]; Riffle[Take[ sq,len],Take[ int,len]]]//Accumulate (* Harvey P. Dale, Jun 11 2024 *)

Formula

Set R(N)=N+ROUND(SQRT(N),0), S(N)=FLOOR(SQRT(R(N))), U(N)=R(N)*(R(N)+1)/2-S(N)*(S(N)+1)*(S(N)+.5)/3, T(N)=CEILING(N/2), then a(N)=T(N)*(1+T(N)*(3+2*T(N)))/6+U(FLOOR(N/2))

Extensions

Terms a(15) and above from Gerald Hillier, Jan 06 2022

A350150 a(1)=1; thereafter a(n+1) is the smallest unused number k such that d(k) and d(a(n)) are coprime, where d is the divisor counting function A000005.

Original entry on oeis.org

1, 2, 4, 3, 9, 5, 16, 6, 25, 7, 36, 8, 49, 10, 64, 11, 81, 12, 625, 13, 100, 14, 121, 15, 144, 17, 169, 19, 196, 21, 225, 22, 256, 23, 289, 24, 324, 26, 361, 27, 400, 29, 441, 30, 484, 31, 529, 33, 576, 34, 676, 35, 729, 18, 1024, 20, 1296, 28, 2401, 32, 4096
Offset: 1

Views

Author

David James Sycamore, Dec 16 2021

Keywords

Comments

A permutation of the positive integers. Identical to A137442 until a(18), with some terms in common thereafter. Numbers with the same number of divisors appear in their natural order, e.g. primes; d(p)=2, odd squarefree semiprimes; d(p*q) = 4, etc.
From Michael De Vlieger, Dec 16 2021: (Start)
a(2n+1) is square and d(a(2n+1)) odd. Let a(2n+1) constitute an "alpha" ray in scatterplot.
d(a(2n)) is even. Let a(2n) constitute a "beta" ray in scatterplot.
The occasion of d(a(2n)) = 6 induces a "flare" phase in the sequence, evident in scatterplot. The following term a(2n+1) is forced to have d(a(2n+1)) congruent to 1 or 5 (mod 6).
There are 5 flare-phases in the scatterplot associated with the occasion of d(a(2n)) = 6:
(I) a(18) = 12, a(19) = 625. The latter term interrupts what had been thereto and thereafter a series of square a(2n+1).
(II) a(54..61);
(III) 144..169 where a(k) with k in {152, 158, 164, 166} have d(a(k)) =/= 6, a characteristic common to subsequent phases;
(IV) 686..849;
(V) 11664..15515. (End)

Examples

			a(2) = 2 because d(1) = 1, d(2) = 2 and gcd(1,2) = 1.
a(3) cannot be 3 since d(2) = d(3) = 2, but gcd(d(2),d(4)) = gcd(2,3) = 1, so a(3) = 4.
		

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := a[n] = Module[{k = 2, s = Array[a, n - 1], d = DivisorSigma[0, a[n - 1]]}, While[MemberQ[s, k] || ! CoprimeQ[d, DivisorSigma[0, k]], k++]; k]; Array[a, 100] (* Amiram Eldar, Dec 16 2021 *)

Extensions

More terms from Amiram Eldar, Dec 16 2021
Showing 1-2 of 2 results.