Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18811
2 votes

Create table of elements which belongs to specific sets

Using MemberQ I wrote the following code and it worked: A1={2}; A2={3,5,6}; A3={7,8,10} Union[Flatten[Table[If[(MemberQ[A1,Mod[i,3]]==True ||MemberQ[A2,Mod[i,7]]==True||MemberQ[A3,Mod[i,11]]==True),i …
asad's user avatar
  • 848
-1 votes
3 answers
151 views

Create table of elements which belongs to specific sets

I would like to produce elements (preferably by Table or For-If commands) that they belong to specific sets. For example I want to write positive integers from 1 to 100 such that they are $2 \pmod 3$, …
asad's user avatar
  • 848