« first day (225 days earlier)      last day (2144 days later) » 

6:21 PM
tabs open
Any CMC/Challenge idea?
 
Can you think of a CMC?
 
I think I can...
CMC: Given an integer N, output the Nth term of this sequence: 1, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106, 121, ...
 
I'd ask for the Nth term, but that seems like its cheating :P
 
@Mr.Xcoder 3 bytes.
@cairdcoinheringaahing Hint: Compare them to the triangular numbers (you should notice an offset :P)
For reference:
  0   1
  1   2
  2   4
  3   7
  4  11
  5  16
  6  22
  7  29
  8  37
  9  46
 10  56
 11  67
 12  79
 13  92
 14 106
 15 121
Is the output of my program. Whilst for triangular numbers:
  0   0
  1   1
  2   3
  3   6
  4  10
  5  15
  6  21
  7  28
  8  36
  9  45
 10  55
 11  66
 12  78
 13  91
 14 105
 15 120
@cairdcoinheringaahing Got it?
 
@Mr.Xcoder Yeah, I got it a while ago, but am trying to convert to Jelly :P
 
6:30 PM
Ah ok
 
@Mr.Xcoder Is one indexing OK?
 
Yes
 
Can I see?
 
6:34 PM
Hint: I have RS in my code too
Let's analyze what your code does: - N+1. RS - (N+1)(N+2)/2. _ - (N+1)(N+2)/2 - N. Can that be golfed?
(i use 0-indexing)
 
@Mr.Xcoder Hold on, doing maths :P
 
next step: (N/2+1)(N+1)-N
 
@Mr.Xcoder Please don't try to help me any more (thanks) :p
 
Ok!
Anyway, I gtg o/
 
o/
ಠ_ಠ I have a 5 byte maths answer
 

« first day (225 days earlier)      last day (2144 days later) »