Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)

Revision History for A080457

(Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A080457 a(1)=3; for n>1, a(n)=a(n-1) if n is already in the sequence, a(n)=a(n-1)+4 otherwise.
(history; published version)
#21 by Charles R Greathouse IV at Thu Sep 08 08:45:09 EDT 2022
PROG

(MAGMAMagma) [3+4*(n-2-Floor((n-3)/4)) : n in [1..100]]; // Wesley Ivan Hurt, Jul 15 2015

Discussion
Thu Sep 08 08:45
OEIS Server: https://oeis.org/edit/global/2944
#20 by Charles R Greathouse IV at Sun Aug 16 12:03:56 EDT 2015
LINKS

<a href="/index/Rec#order_05">Index to sequencesentries withfor linear recurrences with constant coefficients</a>, signature (1,0,0,1,-1).

Discussion
Sun Aug 16 12:03
OEIS Server: https://oeis.org/edit/global/2451
#19 by Michel Marcus at Sun Jul 26 02:04:41 EDT 2015
STATUS

reviewed

approved

#18 by Joerg Arndt at Sun Jul 26 02:02:31 EDT 2015
STATUS

proposed

reviewed

#17 by Michel Marcus at Mon Jul 20 06:43:16 EDT 2015
STATUS

editing

proposed

#16 by Michel Marcus at Mon Jul 20 06:43:11 EDT 2015
FORMULA

a(n) = 3+ + 4*(n-2-floor((n-3)/4)).

STATUS

proposed

editing

#15 by Vincenzo Librandi at Thu Jul 16 03:55:26 EDT 2015
STATUS

editing

proposed

#14 by Vincenzo Librandi at Thu Jul 16 03:55:04 EDT 2015
MATHEMATICA

LinearRecurrence[{1, 0, 0, 1, -1}, {3, 7, 7, 11, 15}, 70] (* Vincenzo Librandi, Jul 16 2015 *)

STATUS

proposed

editing

#13 by Anders Hellström at Wed Jul 15 16:58:33 EDT 2015
STATUS

editing

proposed

#12 by Anders Hellström at Wed Jul 15 16:58:23 EDT 2015
PROG

(PARI) main(size)={my(v=vector(size), i, j); v[1]=3; for(j=2, size, x=0; for(i=1, j-1, if(v[i]==j, x=1; break)); if(x==1, v[j]=v[j-1], v[j]=v[j-1]+4)); return(v); } /* Anders Hellström, Jul 15 2015 */

STATUS

proposed

editing

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 August 18 18:19 EDT 2024. Contains 375273 sequences. (Running on oeis4.)