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

A274686 Least number k such that k-th triangular number is the sum of two nonzero squares in exactly n ways.

Original entry on oeis.org

4, 40, 25, 145, 625, 169, 31249, 985, 2600, 2500, 87890625, 3649, 384199200, 15625, 33124, 6409
Offset: 1

Views

Author

Altug Alkan, Jul 02 2016

Keywords

Comments

From Robert Israel, Jul 04 2016: (Start)
Least k such that A025426(A000217(k)) = n.
A025426(A000217(18463134765625))=17, but I don't know if this is minimal. (End)
a(18) = 24649, a(20) = 40000, a(21) = 250000. 25*10^6, 25*10^8, 25*10^12 are not terms. Are there other terms of the form 25*10^(2k)? - Chai Wah Wu, Jul 23 2020

Examples

			a(2) = 40 because 40*41 / 2 = 820 = 6^2 + 28^2 = 12^2 + 26^2.
		

Crossrefs

Extensions

a(11)-a(16) from Giovanni Resta, Jul 04 2016

A336543 a(n) is the number of ways to write A336542(n) as a sum of two nonzero squares.

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 2, 3, 4, 3, 4, 4, 3, 4, 4, 6, 3, 5, 5, 6, 3, 5, 6, 8, 4, 8, 6, 6, 8, 8, 9, 4, 6, 7, 10, 9, 4, 12, 7, 8, 8, 10, 12, 12, 4, 7, 9, 8, 12, 12, 5, 16, 8, 9, 16, 13, 10, 12, 16, 15, 5, 8, 18, 16, 14, 10, 10, 14, 15, 5, 20, 18, 16, 9, 11
Offset: 1

Views

Author

David A. Corneth, Jul 24 2020

Keywords

Examples

			a(11) = 3 as A336542 = 325 and can be written in three ways as a sum of two nonzero squares.
		

Crossrefs

Formula

a(n) = A025426(A336542(n)). - Michel Marcus, Jul 31 2020

A342154 Number of partitions of n^5 into two positive squares.

Original entry on oeis.org

0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 3, 0, 0, 3, 0, 0, 0, 3, 1, 0, 3, 0, 0, 0, 0, 5, 3, 0, 0, 3, 0, 0, 1, 0, 3, 0, 0, 3, 0, 0, 3, 3, 0, 0, 0, 3, 0, 0, 0, 0, 6, 0, 3, 3, 0, 0, 0, 0, 3, 0, 0, 3, 0, 0, 0, 18, 0, 0, 3, 0, 0, 0, 1, 3, 3, 0, 0, 0, 0, 0, 3, 0, 3, 0, 0, 18, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 3, 1, 0, 5, 3, 0, 0, 3, 0
Offset: 0

Views

Author

Seiichi Manyama, Mar 02 2021

Keywords

Comments

a(n) > 0 if and only if n is in A000404. - Robert Israel, Mar 03 2021

Examples

			2^5 = 32 = 4^2 + 4^2. So a(2) = 1.
5^5 = 3125 = 10^2 + 55^2 = 25^2 + 50^2 = 38^2 + 41^2. So a(5) = 3.
		

Crossrefs

Programs

  • Maple
    f:= proc(n) local x,y,S;
          S:= map(t -> subs(t,[x,y]),[isolve(x^2+y^2=n^5)]);
          nops(select(t -> t[1] >= t[2] and t[2] > 0, S))
    end proc:
    map(f, [$0..200]); # Robert Israel, Mar 03 2021
  • PARI
    a(n) = my(cnt=0, m=n^5); for(k=1, sqrt(m/2), l=m-k*k; if(l>0&&issquare(l), cnt++)); cnt;

Formula

a(n) = A025426(A000584(n)).

A273545 Least number k such that k*n is the sum of two nonzero squares in exactly n ways.

Original entry on oeis.org

2, 25, 975, 1105, 1625, 16575, 739375, 27625, 71825, 27625, 58093750, 480675, 93925, 8547175, 1077375, 801125, 76765625, 2082925, 783935546875, 801125, 942703125, 23740234375, 1404178750, 17784975, 12138425, 8300781250, 106229175, 700984375, 221252441406250
Offset: 1

Views

Author

Altug Alkan, May 26 2016

Keywords

Examples

			a(2) = 25 because 25*2 = 50 is the least even number that is the sum of two nonzero squares in exactly 2 ways; 50 = 1^2 + 7^2 = 5^2 + 5^2.
		

Crossrefs

Programs

  • Mathematica
    nR[n_] := (SquaresR[2, n] + Plus @@ Pick[{-4, 4}, IntegerQ /@ Sqrt[{n, n/2}]])/8; a[n_] := Block[{k=1}, While[nR[n * k] != n, k++]; k]; Array[a, 10] (* Giovanni Resta, May 27 2016 *)

Extensions

a(6)-a(29) from Giovanni Resta, May 26 2016

A273787 Least number k such that A001844(k) (sums of two consecutive squares) is the sum of two nonzero squares in exactly n ways.

Original entry on oeis.org

1, 6, 21, 23, 221, 78, 7278, 153, 703, 1653, 6695846, 496, 670758346, 8346, 1471, 1081
Offset: 1

Views

Author

Altug Alkan, May 30 2016

Keywords

Comments

a(18) = 1978, a(20) = 4596, a(21) = 304153, a(22) = 137903, a(24) = 2628. - Chai Wah Wu, Feb 13 2018

Examples

			a(2) = 6 from 6^2 + 7^2 = 2^2 + 9^2.
a(3) = 21 from 21^2 + 22^2 = 5^2 + 30^2 = 14^2 + 27^2.
a(4) = 23 form 23^2 + 24^2 = 4^2 + 33^2 = 9^2 + 32^2 = 12^2 + 31^2.
		

Crossrefs

Programs

  • PARI
    A025426(n)=my(v=valuation(n, 2), f=factor(n>>v), t=1); for(i=1, #f~, if(f[i, 1]%4>1, if(f[i, 2]%2, return(0)), t*=f[i, 2]+1)); if(t%2, t-(-1)^v, t)/2
    a(n)=my(k=1); while(A025426(2*k*(k+1)+1)!=n, k++); k \\ Charles R Greathouse IV, Jun 03 2016

Extensions

a(10)-a(14) from Giovanni Resta, Jun 03 2016
a(15)-a(16) from Chai Wah Wu, Feb 13 2018
Previous Showing 41-45 of 45 results.