login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121086 Number of primitive Pythagorean-like triples a^2+b^2=c^2+k for k=3 with 0<c<=10^n. 2
1, 13, 119, 1219, 12115, 121054, 1210480, 12101765, 121011208 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..9.

EXAMPLE

a(1)=1 because there is one solution (a,b,c) as (4,6,7) with 0<c<=10^1.

MATHEMATICA

(* Courtesy of Daniel Lichtblau of Wolfram Research *)

countTriples[m_, k_] := Module[ {c2, c2odd, total = 0, fax, g}, Do[ c2 = c^2 + k; If[c2 < 2, Continue[]]; c2odd = c2; While[EvenQ[c2odd], c2odd /= 2]; If [c2odd==1, If [OddQ[Log[2, c2]], total++ ]; Continue[]]; If[Mod[c2odd, 4] == 3, Continue[]]; g = GCD[c2odd, 100947]; If[g != 1 && g^2 != GCD[c2odd, 10190296809], Continue[]]; fax = Map[{Mod[ #[[1]], 4], #[[2]]}&, FactorInteger[c2odd]]; If[Apply[Or, Map[ #[[1]] == 3 && OddQ[ #[[2]]] &, fax]], Continue []]; fax = Cases[fax, {1, aa_}:>aa+1]; fax = Ceiling[Apply[Times, fax]/2]; total += fax; , {c, m}]; total]

CROSSREFS

Cf. A101931, A121082, A121083, A121084, A121085, A121087, A121088

Sequence in context: A225965 A051824 A016285 * A159969 A253512 A295048

Adjacent sequences:  A121083 A121084 A121085 * A121087 A121088 A121089

KEYWORD

more,nonn

AUTHOR

Tito Piezas III, Aug 11 2006

EXTENSIONS

First few terms found by Tito Piezas III, James Waldby (j-waldby(AT)pat7.com)

Subsequent terms found by Andrzej Kozlowski (akoz(AT)mimuw.edu.pl), Daniel Lichtblau (danl(AT)wolfram.com)

a(7) from Max Alekseyev, Jul 04 2011

a(8)-a(9) from Lars Blomberg, Dec 22 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 11 21:00 EST 2019. Contains 329937 sequences. (Running on oeis4.)