Let's cheat and look it up in oeis.org … Skip's sequence is A027688, dropping the first term A027688 is defined as: (n^2 + n + 3) but (n*n + n + 3) gives better results with (13 :)
q=: 13 : '(y*y) + y + 3' q *~ + 3 + ] q >:i.10 5 9 15 23 33 45 59 75 93 113 Has anyone tried automating OEIS lookup? It could be the basis for a nifty new primitive adverb: (...) as in: 5 9 15 23 33 ... On Sun, 6 Mar 2022 at 02:11, Elijah Stone <elro...@elronnd.net> wrote: > Ah, David beat me to it! :) > > On Sat, 5 Mar 2022, Elijah Stone wrote: > > > Here's how I would do it: > > > > 3++/\+:i.10 > > 3 5 9 15 23 33 45 59 75 93 > > > > This preserves the 'missing' initial term of 3. If you don't want it, > > replace i.10 with >:i.10. > > > > -E > > > > On Sat, 5 Mar 2022, 'Skip Cave' via Programming wrote: > > > >> I have this series: > >> > >> 5 9 15 23 33 .... > >> > >> 5+4 > >> > >> 9 > >> > >> 9+6 > >> > >> 15 > >> > >> 15+8 > >> > >> 23 > >> > >> 23+10 > >> > >> 33 > >> > >> > >> How can I use the power conjunction to generate this series? > >> > >> Is there a more concise method to generate this than the power > conjunction? > >> > >> > >> Skip > >> > >> > >> Skip Cave > >> Cave Consulting LLC > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm