Questions tagged [number-sequence]

39 questions
0
votes
1 answer

how to create two number sequences

Can we create Purchase order Number Sequence with the division capture for Local and Foreign purchases? Can we create two number sequence at a time in AX 2012 ?
0
votes
2 answers

Set the year as prefix in Numbersequences

In AX 2012 I want to add the year (e.g. 2011) as prefix in the ID field. For instance I create a new customer in AX. The ID of this new customer should be like: 2013-00000123 Is it possible to set the year in the segments instead of coding this. How…
Tassisto
  • 9,877
  • 28
  • 100
  • 157
-1
votes
1 answer

Find Sequences of any ranges

I need to find number sequence ranges in below number list. there are diffent number serials in the list https://docs.google.com/spreadsheets/d/1ocZtUeaKuvq9WMMP-QKbvhsQzZJ7SqYDOLH9acoBVa0/edit?usp=sharing pls assist to find a foumular or…
-1
votes
1 answer

How would I put a range of numbers in an array?

First post. I am trying to put a large range of numbers into an array (-1000 to 1000) and then do an exponential search. I have very little experience with c# and getting stuck on how to put such a large range into an array. I've been trying a for…
Liz
  • 11
  • 2
-1
votes
2 answers

MS SQL 2012: find number sequences

I have a table like this: WITH S AS ( SELECT 'B' type, 1 number UNION SELECT 'B', 2 UNION SELECT 'B', 3 UNION SELECT 'B', 4 UNION SELECT 'B', 5 UNION SELECT 'A', 6 UNION SELECT 'A', 7 UNION SELECT 'B', 8 UNION SELECT 'B', 9 UNION SELECT 'B',…
Mchief
  • 125
  • 12
-2
votes
1 answer

Javascript function determining number combination with smallest possible difference

I'm struggling to formulate a Javascript function that would allow me to create 2 numbers out of a user input, according to 2 rules. let userInput; let num1; let num2; Rules: num1 + num2 = userInput and num1 - num2 must be the smallest positive…
-2
votes
2 answers

How can I find the exact rand() used in a C library?

As a part of my coursework I need to find and re-code a rand() random number generator which outputs the same numbers as the original. The starting sequence is 1804289383 846930886 1681692777 1714636915 1957747793 424238335 719885386 1649760492…
Saixoz
  • 7
  • 2
-4
votes
1 answer

reject numbers in a sequence of numbers that do not increase with same increase

I have a sequence of numbers that I want to check and reject numbers that do not increase with similar level. data <- c(1, 2, 5, 6, 6.25, 6.49, 6.75, 7.01, 8, 9, 11) For example, for the data here I want to subset numbers with an increase of…
Jian
  • 365
  • 1
  • 6
  • 19
-5
votes
1 answer

File with sequence of numbers to two column array/list and then plot

I have a text file (test.txt) which just has some sequence of numbers e.g. 2, 5, 6, 9, 3, 1, 3, 5, 5, 6, 7, 8, etc. My main goal is to plot odd placed numbers on the X-axis and even placed numbers on the Y-axis. To do that i thought, perhaps i…
COMA FIL
  • 1
  • 1
1 2
3