Depending on the value of "n", you can probably model it like this. Suppose the value of "n" is 137.
create table expensive_function_of_n_vars (
x1 integer not null,
x2 integer not null,
...
x137 integer not null,
primary key (x1, x2, ..., x137),
result integer not null
);
CHECK(), , . , .
, - . , , "x3".
, , , OP "", "" "". - , - , . ( , , - , , , , - .) , "" , {2, 3, 5} {2, 5, 3}. CHECK(), , .
, , , , 6NF, , .