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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076042 a(1) = 1, a(n) = a(n-1) + n^2 if a(n-1) < n^2 else a(n) = a(n-1) - n^2. 4
1, 5, 14, 30, 5, 41, 90, 26, 107, 7, 128, 272, 103, 299, 74, 330, 41, 365, 4, 404, 845, 361, 890, 314, 939, 263, 992, 208, 1049, 149, 1110, 86, 1175, 19, 1244, 2540, 1171, 2615, 1094, 2694, 1013, 2777, 928, 2864, 839, 2955, 746, 3050, 649, 3149 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Franklin T. Adams-Watters, Table of n, a(n) for n=1,...,1000

PROG

v=vector(50):v[1]=1:for(n=2, 50, if(v[n-1]<n^2, v[n]=v[n-1]+n^2, v[n]=v[n-1]-n^2)):print(v)

CROSSREFS

Cf. A076039, A003462, A076041, A046901.

Sequence in context: A019262 A212919 A280230 * A231669 A256986 A162208

Adjacent sequences:  A076039 A076040 A076041 * A076043 A076044 A076045

KEYWORD

nonn

AUTHOR

Amarnath Murthy, Oct 29 2002

EXTENSIONS

More terms from Ralf Stephan, Mar 20 2003

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 10:48 EST 2018. Contains 317349 sequences. (Running on oeis4.)