Skip to main content
added 1 character in body
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

5 languages (5AB1E05AB1E, Actually, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Actually: sequence A023443 (non-negative integers including 1: a(n) = n−1; 0-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.

5 languages (5AB1E, Actually, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Actually: sequence A023443 (non-negative integers including 1: a(n) = n−1; 0-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.

5 languages (05AB1E, Actually, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Actually: sequence A023443 (non-negative integers including 1: a(n) = n−1; 0-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.
added 226 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

45 languages (5AB1E, Actually, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Actually: sequence A023443 (non-negative integers including 1: a(n) = n−1; 0-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.

4 languages (5AB1E, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.

5 languages (5AB1E, Actually, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Actually: sequence A023443 (non-negative integers including 1: a(n) = n−1; 0-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

4 languages (5AB1E, CJam, Jelly, MATL), 7 bytes

UD>li)+

Try it online!:

  • 05AB1E: sequence A000027 (positive integers: a(n) = n; 1-based)
  • Cjam: sequence A020725 (positive integers excluding 1: a(n) = n+1; 1-based)
  • Jelly: sequence A005843 (non-negative even numbers: a(n) = 2*n; 0-based)
  • MATL: sequence A000290 (squares: a(n) = n2; 1-based). Exits with an error after producing the output.