login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A174871 Numbers k such that the k-th triangular number ends in 6 or 8. 1
3, 7, 8, 11, 12, 16, 23, 27, 28, 31, 32, 36, 43, 47, 48, 51, 52, 56, 63, 67, 68, 71, 72, 76, 83, 87, 88, 91, 92, 96, 103, 107, 108, 111, 112, 116, 123, 127, 128, 131, 132, 136, 143, 147, 148, 151, 152, 156, 163, 167, 168, 171, 172, 176, 183, 187, 188, 191, 192, 196 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Observed to be the same as when all consecutive terms in the sequence a(0) = n+1, a(k+1) = a(k)^2 - a(k) + 1 will eventually end in 57, 93, 57, 93, ... - Eugene Dorokhin, Aug 28 2018
LINKS
FORMULA
From R. J. Mathar, Apr 15 2010 (Start)
a(n) = a(n-1) + a(n-6) - a(n-7).
G.f.: x*(3 + 4*x + x^2 + 3*x^3 + x^4 + 4*x^5 + 4*x^6)/ ((1+x) * (x^2-x+1) * (1+x+x^2) * (x-1)^2). (End)
EXAMPLE
11 is in the sequence because 11*12/2 = 66 ends in 6. - Emeric Deutsch, Apr 10 2010
MAPLE
a := proc (n) if `mod`((1/2)*n*(n+1), 10) = 6 or `mod`((1/2)*n*(n+1), 10) = 8 then n else end if end proc: seq(a(n), n = 1 .. 200); # Emeric Deutsch, Apr 10 2010
MATHEMATICA
LinearRecurrence[{1, 0, 0, 0, 0, 1, -1}, {3, 7, 8, 11, 12, 16, 23}, 50] (* Stefano Spezia, Sep 01 2018 *)
PROG
(PARI) is(n) = #setintersect([n*(n+1)/2%10], [6, 8])==1 \\ Felix Fröhlich, Sep 01 2018
CROSSREFS
Cf. A008954. - R. J. Mathar, Apr 15 2010
Sequence in context: A331547 A285164 A106753 * A062863 A194470 A078466
KEYWORD
nonn,easy
AUTHOR
J. Lowell, Mar 31 2010
EXTENSIONS
More terms from Emeric Deutsch, Apr 10 2010
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 07:33 EDT 2024. Contains 371235 sequences. (Running on oeis4.)